Boost logo

Boost-Build :

Subject: [Boost-build] Passing <cxxflags>-fPIC with use-project /boost
From: Martin Dyring-Andersen (mda_at_[hidden])
Date: 2009-05-07 06:07:30

Hello everybody,

I have a Jamroot that looks like this:

project : requirements
        : build-dir stage
        : default-build release

use-project /boost : dependencies/boost_1_39_0 ;
use-project /test : test ;

and a Jamfile located in test subdirectory that looks like this:

lib test : [ glob-tree *.cpp ]

Now, to get the static linking to /boost//thread and date_time working I need to pass -fPIC when building with GCC on 64 bit platforms.

I can see that my own targets in lib sfcg gets compiled with -fPIC, but for some reason the /boost//thread and date_time libraries does not seem to "notice" it.

Everything will work perfectly if I pass cxxflags=-fPIC as a parameter to bjam on the command line. But I would prefer to cram as many details as possible into the Jamfiles, so I don't have to remember them later on ;-).

Any help would be greatly appreciated.

Best regards,
Martin Dyring-Andersen

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at