Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-05-03 21:22:04


David P. Riedel wrote:

> 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

Then there is something broken with your build/install of gcc-3.4. GCC
adds the required references to it's internal libraries. If the
libraries are close relatives of the default system ones then you might
need to set your LD_LIBRARY_PATH to point it elsewhere.

> 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?

You can by specifying the BUILD request as such:
"-sBUILD=<linkflags>-Wl,-rppath,/usr/local/gcc_3.4/lib"...

But I would recomend against it. It ties the executable to that
location. It's better to set up the LD_LIBRARY_PATH correctly.

HTH.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
 

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