CMake linker...?

Greetings, linkou boost.python using the build system cmake.

set(Boost_USE_STATIC_LIBS OFF)<br>
<br / >
find_package(Boost COMPONENTS filesystem system date_time python REQUIRED)<br>
<br / >
add_definitions(-Wall -g-msse2 -fPIC)

The main parameters of the project.

Just when bildu crashes:
/usr/bin/ld: libboost_python.a(from_python.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with-fPIC<br>
libboost_python.a: could not read symbols: Bad value

Looked arguments to the linker used (using make VERBOSE=1):
/usr/bin/c++ -fPIC -g -shared-Wl,-soname, ../../lib/ CMakeFiles/LogManagerWrapper.cpp.o -Wl,-Bstatic -lboost_filesystem -lboost_system -lboost_date_time -lboost_python -Wl,-Bdynamic -lpython2.7

At random removed -Wl,-Bstaticworks. What could it be?
October 10th 19 at 14:14
0 answer

Find more questions by tags BoostCMakeC++Python