Boost logo

Boost-Build :

From: David P. Riedel (driedel_at_[hidden])
Date: 2004-05-03 18:25:25


hi.

i am new to bjam. i have spent some time looking through the mailing
archives but have not found a way to solve my problem described below.

i am trying to build a separate version of boost_1_31_0 on a Mandrake
10.0 Official linux system.  i am using the gcc 3.4.0 compiler to do
this.  i have gcc 3.4 installed in a separate directory:
/usr/local/gcc_3.4. i use the following command to build the libraries:

bjam "-sTOOLS=gcc" "-sGCC_ROOT_DIRECTORY=/usr/local/gcc_3.4".

everything  builds ok and the 3.4 compiler is called in the build. but
when i use ldd on the .so libraries, i see that the libraries reference
the default gcc libraries in /usr/lib instead of the libraries in
/usr/local/gcc_3.4/lib

what i need to do is to be able to pass the rpath option to the linker.
  if i were calling gcc myself to do the linking i would do something like:

/usr/local/gcc_3.4/bin/g++ <bunch of link options> -Xlinker -rpath
-Xlinker /usr/local/gcc_3.4/lib

this will accomplish what i need to do.

is there a way to direct bjam to do this when i invoke it to build the
boost libraries?

thanks for any help.

dave riedel

 


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