automake
[Top][All Lists]
Advanced

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

Re: Any way not tp hardcode library path in project makefile.am


From: Ralf Wildenhues
Subject: Re: Any way not tp hardcode library path in project makefile.am
Date: Fri, 2 Mar 2007 08:59:00 +0100
User-agent: Mutt/1.5.14 (2007-02-28)

Hello Jeff,

* Jeff Safier wrote on Thu, Mar 01, 2007 at 06:12:48PM CET:
> Is there any way to link a shared object (or .la file) created with
> libtool (through automake) without hardcoding a path when specifying the
> file in the program_LDADD line

On many systems, libtool will not hard-code run paths into libraries or
programs iff all libraries are/will be found in locations searched by
the runtime linker by default.  Otherwise, libtool will hard-code if
possible, so that executing an installed program works.

On some systems, the link editor will hardcode itself, so you cannot
really do anything about it.  Those systems are getting less common,
though.

If you're trying to produce relocatable packages, you may want to take
a look at the gnulib relocatable* modules.  They are pretty new though.

Cheers,
Ralf




reply via email to

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