Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-05-16 16:20:06


On Friday 16 May 2008 23:36:09 Guillaume Pothier wrote:
> 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

I presume you know what this gcc/cflags=-fPIC syntax means? It means:
"in addition to any other variants", build everything with "toolset=gcc cflags=-fPIC".
So, the above builds 5 variants:

        gcc/variant=release,debug (2 variants here)
        gcc/cflags=-fPIC
        gcc/cxxflags=-fPIC
        gcc/linkflags=-fPIC

Do you want it? Try removing "gcc/" everywhere.

- Volodya


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