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 (
> 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)

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

- Volodya

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