[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFE: allow $ORIGIN in the run-path
From: |
Robert Boehne |
Subject: |
Re: RFE: allow $ORIGIN in the run-path |
Date: |
Thu, 10 May 2001 12:33:23 -0500 |
Laszlo PETER wrote:
>
> Hi libtool developers,
>
> This is not really a bug, it's more an RFE:
> Libtool doesn't support creating relocatable binaries on Solaris.
>
> On Solaris you can have Dynamic String Tokens in the run-path.
> These are replaced with their values by the runtime linker.
> Such a Dynamic String Token is $ORIGIN, which is replaced
> with the name of the directory where the object was loaded from.
>
> So for example a package that installs its shared libraries
> into <prefix>/lib and the executables into <prefix>/bin could
> use '$ORIGIN/../lib' in the run-path. This would make the package
> relocatable, since it wouldn't depend on absolute paths.
>
> Libtool only allows absolute path names in the run-path and exits
> with an error message if '$ORIGIN' is used.
>
> To create relocatable binaries I comment out the test for absolute
> path names in libtool but I think a general solution would be
> beneficial for others too.
>
> Regards,
>
> Laca
Can you escape $ORIGIN/../lib in a way that would cause Libtool
to interpret it?
Rob
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: address@hidden