zaphoyd/websocketpp — Issue #57: Policy Refactor: Creating shared libraries fails
Author: petmos
Created: 2012-01-27 19:54:19+00:00
State: open

When trying to create a shared library with SHARED=1 it failed with:
/usr/bin/ld: cannot find -lboost_system
collect2: ld returned 1 exit status

When i insert -L$(BOOST_LIB_PATH) in $(lib_target) of the Makefile libwebsocketpp.so.0.1.0 was created successful.
My new line 129 in the Makefile is now:
$(CXX) -shared $(libs) -Wl,-soname,$(libname_shared_major_version) -o $@ $(objects) -L$(BOOST_LIB_PATH) ; \