|
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:
gcc-Link-action
bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true/libboost_date_time-gcc-d-1_32.so
g++: `-b' must come at the start of the command line
set -e
LD_LIBRARY_PATH=bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
"g++" -g -b=elf_386 -fPIC -shared -o
"bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true/libboost_date_time-gcc-d-1_32.so.1.32.0"
"bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true/greg_month.o"
"bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true/greg_weekday.o"
"bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true/date_generators.o"
-Wl,-rpath-link,. -Wl,-soname,libboost_date_time-gcc-d-1_32.so.1.32.0
Thanks,
John
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