Re: Stop "relink" searching host directory when installation prefix provided

2011-01-19 Thread Martin Panter
On 16 January 2011 17:13, Ralf Wildenhues wrote: > I haven't looked into this in detail yet, but thanks for the good > writeup and the many references. We need testsuite exposure for > this. Hello again I've made a test case for my issue (attached patch file). It fails with current Libtool and

Re: Stop "relink" searching host directory when installation prefix provided

2011-01-17 Thread Martin Panter
Hi Charles On 18 January 2011 02:38, Charles Wilson wrote: > 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:

Re: Stop "relink" searching host directory when installation prefix provided

2011-01-17 Thread Charles Wilson
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. > > Ag

Re: Stop "relink" searching host directory when installation prefix provided

2011-01-17 Thread Martin Panter
On 16 January 2011 17:13, Ralf Wildenhues wrote: > Hello Martin, > > * Martin Panter wrote on Sun, Jan 16, 2011 at 01:04:00PM CET: >> Don't search host directory during "relink" if $inst_prefix is provided > >> --- libtool-2.4.orig/libltdl/config/ltmain.m4sh >> +++ libtool-2.4/libltdl/config/ltmai

Re: Stop "relink" searching host directory when installation prefix provided

2011-01-16 Thread Charles Wilson
On 1/16/2011 12:13 PM, Ralf Wildenhues wrote: > (I for one often do 'make install DESTDIR=/tmp/dest' merely to > tar up the installation tree to be scp'ed to another machine where > the NFS share is mounted rw.) Actually, Ralf's example (or one very similar to it) is the *primary* use of DESTDIR.

Re: Stop "relink" searching host directory when installation prefix provided

2011-01-16 Thread Ralf Wildenhues
Hello Martin, * Martin Panter wrote on Sun, Jan 16, 2011 at 01:04:00PM CET: > Don't search host directory during "relink" if $inst_prefix is provided > --- libtool-2.4.orig/libltdl/config/ltmain.m4sh > +++ libtool-2.4/libltdl/config/ltmain.m4sh > @@ -6122,12 +6122,14 @@ func_mode_link () >

Stop "relink" searching host directory when installation prefix provided

2011-01-16 Thread Martin Panter
I've been compiling programs with Open embedded and came across an issue that has apparently been around for a long time. I think the symptoms have been described many times before; see list of links further down. But briefly, when using Libtool to cross compile and install programs into a target "