Build only static library with -fPIC option.
Dear list, I am building boost cvs. For my specific application, I need to build only static libraries with -fPIC option. I tried command
bjam -j4 --prefix=/usr "-sBUILD=release <runtime-link>static <cxxflags>-fPIC" --with-serialization --with-iostreams install
But I still get .a and .so libraries under /usr/lib. I used -n option (an advise I get from one of my previous posts) and the building commands are like: "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o "bin.v2/libs/serialization/build/gcc-3.4.6/release/link-static/binary_wiarchive.o" "libs/serialization/src/binary_wiarchive.cpp" so no -fPIC is passed. I tried bjam -h, but get even more confused because I am told.. -n Don't actually execute the updating actions. I guess cvs/bjam handles these options totally differently than boost 1.33.1, but how can I get the latest information? Many thanks in advance. Bo
participants (1)
-
Bo Peng