Boost logo

Boost-Build :

From: John Scholvin (john_at_[hidden])
Date: 2005-07-20 16:30:43

I am trying to build the boost libraries using bjam on an x86_64 linux
box. Building the libraries for 64 bits was no problem just using

bjam -sTOOLS=gcc stage

But I also need to build 32 bit versions of these on the same box for
use with some legacy 32 bit libraries I am stuck with. The closest I
have come to figuring out something for bjam that works looks like this:

bjam -sTOOLS=gcc "-sBUILD=<cxxflags>-m32"
"-sBUILD=<linkflags>-b=elf_386" stage

It compiles everything OK but the linker fails when it tries to create
the shared libraries. You can see from the error below that the g++
executable expects the -b argument to be first, but it isn't working out
that way. Is there a better way to do this?

Snippet of output below:

g++: `-b' must come at the start of the command line

set -e


"g++" -g -b=elf_386 -fPIC -shared -o
-Wl,-rpath-link,. -Wl,-soname,


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