From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-11-08 05:01:14
> Fortunately, GNU ld is a little smarter than I thought. The current
> documentation says:
> "For compatibility with other ELF linkers, if the -R option is followed
> by a directory name, rather than a file name, it is treated as the
> -rpath option."
> This is true for the most recent version of binutils; I've no idea when
> they implemented it, though. It depends on how important it is for us to
> support earlier versions. If it is important, we'll need to implement
> some sort of linker detection/specification.
I think if this extra logic works for the versions of binutils that you and
Andre are using, there's not need to spend time on detection/specification of
> Otherwise, on Solaris at least, the right thing to do is just have gcc
> use -Wl,-R,path and it should work with either linker. Whether this is
> true of other gcc supported platforms remains to be seen.
The docs say this -R handling is true for all platform, so changing -rpath to
-R looks like the optimal solution. Patches welcome ;-)
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