|
Boost-Build : |
From: Michael Stevens (Michael.Stevens_at_[hidden])
Date: 2004-09-06 04:39:47
> I think using LD_LIBRARY_PATH is the best method.
I think I am correct in saying that if you use --rpath the the executable you
build will only be able to execute if the shared library is in exactly the
path specified. On any other system this will not be the case. This is not
the way things normally work!
> If, for whatever reason,
> that's not OK with you, we need to recall what Michael was suggesting: that
> toolset should allow to pass additional compiler and linker options. This
> is more general solution than just RPATH. So, you would write:
>
> using gcc : 3.4 : g++ : : -Wl,--rpath -Wl,whatever ;
Have a look at 'intel-linux.jam' for an example.
Michael
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