|
Boost-Build : |
From: Guillaume Pothier (gpothier_at_[hidden])
Date: 2008-05-16 15:36:09
Hi,
A recent thread (http://lists.boost.org/boost-build/2008/03/18671.php)
discussed the use of the -fPIC flag for static libraries built by
boost. The conclusion was that since 1.35 the flag should be properly
passed to the compiler.
However I am using 1.35 and it seems the flag is not passed.
Here is the command line I use:
./tools/jam/src/bin.linuxx86_64/bjam --v2 -d2 --toolset=gcc
gcc/variant=release,debug gcc/cflags=-fPIC gcc/cxxflags=-fPIC
gcc/linkflags=-fPIC --prefix=/home/gpothier/apps/boost/
--build-type=complete --with-filesystem --with-iostreams --with-thread
-a install
And here is a relevant piece of output:
8<----------------
gcc.compile.c++
bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/error_code.o
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
-Wall -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SYSTEM_STATIC_LINK=1
-DNDEBUG -I"." -c -o
"bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/error_code.o"
"libs/system/src/error_code.cpp"
RmTemps bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/libboost_system-gcc42-mt-1_35.a(clean)
rm -f "bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/libboost_system-gcc42-mt-1_35.a"
gcc.archive bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/libboost_system-gcc42-mt-1_35.a
"/usr/bin/ar" rc
"bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/libboost_system-gcc42-mt-1_35.a"
"bin.v2/libs/system/build/gcc-4.2.3/release/link-static/threading-multi/error_code.o"
8<----------------
Am I doing something wrong?
Regards,
g
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk