Boost logo

Boost-Build :

From: David P. Riedel (driedel_at_[hidden])
Date: 2004-05-05 07:13:48


Rene Rivera wrote:
> 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.
>
>
after trying your suggestion i find i have some more questions. this
command does indeed add the rpath option to the gcc link and when i ldd
the .so files i can see that they do reference the gcc libraries
in /usr/local/gcc_3.4/lib. all well and good!

however, when is issue this command:

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

i get a message which says:
...found 4700 targets...
...updating 881 targets...

when i issue this command:

bjam -a "-sTOOLS=gcc" "-sGCC_ROOT_DIRECTORY=/usr/local/gcc_3.4"
"-sBUILD=<linkflags>-Wl,-rppath,/usr/local/gcc_3.4/lib"

i get a message which says:
...found 3832 targets...
...updating 251 targets...

so it appears there must be other options i need to pass to the BUILD.
is there a way i can concatenate options to BUILD or is there a list of
the default values so that i can specify the whole list in the command line?

thanks for your 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