Boost Testing :
From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2006-03-27 08:08:48
On 3/27/06, Markus Schöpflin <markus.schoepflin_at_[hidden]> wrote:
> Attached is a patch which makes the gcc toolset work on Tru64. This is not
> meant to be applied directly, just to highlight the changes needed.
> There are three issues left:
> 1) -R does not work, but there is -rpath instead. The ld man page on my
> Linux box seems to indicate that -rpath should really be used, as this is
> more widely available with ELF linkers.
Only for GNU ld I suspect.
> RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
> retrieving revision 1.63
> diff -u -w -r1.63 gcc.jam
> --- gcc.jam 10 Mar 2006 13:38:40 -0000 1.63
> +++ gcc.jam 27 Mar 2006 11:24:57 -0000
> @@ -319,7 +317,7 @@
> actions link bind LIBRARIES
> - "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,-R$(SPACE)-Wl,"$(RPATH)"
> -Wl,-rpath-link$(SPACE)-Wl,"$(RPATH_LINK)" -o "$(<)" "$(>)" "$(LIBRARIES)"
> -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(OPTIONS) $(USER_OPTIONS)
> + "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,-rpath$(SPACE)-Wl,"$(RPATH)"
> -o "$(<)" "$(>)" "$(LIBRARIES)" -l$(FINDLIBS-ST) -l$(FINDLIBS-SA) $(OPTIONS)
This would break on Solaris when using Sun's linker, which supports -R but
not -rpath. Perhaps the correct value for the "-R/-rpath" flag can be made
a property of the linker? There is already some special case code in
init-link-flags for different linker types and perhaps this logic could be
-- Caleb Epstein caleb dot epstein at gmail dot com