[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stop "relink" searching host directory when installation prefix prov
From: |
Charles Wilson |
Subject: |
Re: Stop "relink" searching host directory when installation prefix provided |
Date: |
Mon, 17 Jan 2011 21:38:44 -0500 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
On 1/17/2011 8:23 AM, Martin Panter wrote:
> On 16 January 2011 17:23, Charles Wilson wrote:
>> Actually, Ralf's example (or one very similar to it) is the *primary*
>> use of DESTDIR. It's how many packaging tools -- like rpm, or cygport
>> on cygwin -- create installable binary packages.
>
> Agreed, that example already tends to work with unmodified Libtool. I
> want to get cross-compiled installable binary packages working as
> well.
Right, but if you remove the $DESTDIR/$libdir from the relink command,
then you'd break these native builds (because, e.g. /usr/lib is still in
the compiler's default search path).
For instance, suppose you're building gettext: it installs several so's
(with interesting dependencies between them) AND a bunch of executables
that depend on THOSE so's. If you use $DESTDIR, and need to relink, but
don't include $DESTDIR/$libdir in the -L spec, then you'd relink the
executables (and so's with internal dependencies) against the versions
installed by gettext-$OLDVER in /usr/lib.
If the new apps depend on any added/new interfaces...boom.
--
Chuck