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


Reply via email to