bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFE: allow $ORIGIN in the run-path


From: Laszlo PETER
Subject: RFE: allow $ORIGIN in the run-path
Date: Thu, 10 May 2001 16:20:03 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]