Boost logo

Boost Testing :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2006-03-27 08:53:16


Caleb Epstein wrote:

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

No, the GNU ld man page contains:

<quote>
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.
</quote>

And indeed the Tru64 ld only knows -rpath which seems to confirm the GNU ld
man page.

[...]

> This would break on Solaris when using Sun's linker, which supports -R but
> not -rpath.

Is it doing the same as the GNU ld's -R parameter, with the same handling
of directory arguments as a special case?

> 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
> placed there.

That's what I think, yes.

Markus


Boost-testing list run by mbergal at meta-comm.com