Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Emmanuel Thomé
On Wed, Jun 28, 2017 at 02:09:54AM +0200, Vincent Lefevre wrote: > I meant either RPATH or RUNPATH (whatever is used by ld). Here it > would be RPATH. Under Debian jessie, here's what I got for MPFR: > > RPATH > /home/vlefevre/software/mpfr-3.1/src/.libs:/home/vlefevre/debian8/gmp/k10/lib > >

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Vincent Lefevre
On 2017-06-28 09:39:10 +0200, Emmanuel Thome wrote: > On Wed, Jun 28, 2017 at 02:09:54AM +0200, Vincent Lefevre wrote: > > I meant either RPATH or RUNPATH (whatever is used by ld). Here it > > would be RPATH. Under Debian jessie, here's what I got for MPFR: > > > > RPATH > > /home/vlefevre/sof

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Emmanuel Thomé
On Wed, Jun 28, 2017 at 11:11:41AM +0200, Vincent Lefevre wrote: > > > RPATH /home/ci/gmp-6.1.2/.libs:/tmp/inst/lib > > > > That's not really consistent with using a libtool wrapper. You said that > > with mpfr you make do without the wrapper. I think that is the reason for > > libtool embeddin

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Vincent Lefevre
On 2017-06-28 11:26:27 +0200, Emmanuel Thome wrote: > On Wed, Jun 28, 2017 at 11:11:41AM +0200, Vincent Lefevre wrote: > > Or it should enforce the kind of dynamic tag: > > * --enable-new-dtags when the wrapper is used (so that RUNPATH is > > used, on which LD_LIBRARY_PATH has the precedence)

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Torbjörn Granlund
Emmanuel Thomé writes: freebsd's ld, which is a venerable GNU binutils 2.17.50 dated 2007-07-50 (yes, I'm talking about the current freebsd), does not emit new dtags (runpath vs rpath) by default. Ouch, I hadn't noticed that. Our test environment includes many (virtualised) fbsd systems

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Vincent Lefevre
On 2017-06-28 13:55:41 +0200, Torbjorn Granlund wrote: > Emmanuel Thomé writes: > > freebsd's ld, which is a venerable GNU binutils 2.17.50 dated 2007-07-50 > (yes, I'm talking about the current freebsd), does not emit new dtags > (runpath vs rpath) by default. > > Ouch, I hadn't noticed

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Torbjörn Granlund
Vincent Lefevre writes: > The fbsd developers' GNU/Linux envy is projected at GPL hate which in > turn badly hurts their own system. This is not fair. The current behavior is the same as various Linux systems, including Debian until Jessie. I was referring to that they use 10 years ol

Re: FreeBSD links wrong library for tests if one is installed in $prefix

2017-06-28 Thread Marc Glisse
On Wed, 28 Jun 2017, Torbjörn Granlund wrote: Vincent Lefevre writes: > The fbsd developers' GNU/Linux envy is projected at GPL hate which in > turn badly hurts their own system. This is not fair. The current behavior is the same as various Linux systems, including Debian until Jessie. I