Andreas,

Andreas Schwab wrote:

John Calcote <[EMAIL PROTECTED]> writes:
The way you implement this is to use $(prefix)/lib, or $(libdir) in your
-R option, which will resolve to the configured library installation
directory - /home/bob/foo/lib. When you use -R like this, however, just
realize that this binary can only be installed on this one non-standard
location (it can still be installed in standard locations).

You can use -R '$ORIGIN/../lib' to make the binary relocatable.
Thanks! You've cleared up a question I've had for years on the meaning of $ORIGIN.

John


Reply via email to