[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: i686-solaris
From: |
Vincent Lefevre |
Subject: |
Re: i686-solaris |
Date: |
Fri, 12 Jul 2013 14:31:45 +0200 |
User-agent: |
Mutt/1.5.21-6305-vl-r59709 (2013-04-16) |
On 2013-07-12 13:55:26 +0200, Ludovic Courtès wrote:
> Vincent Lefevre <address@hidden> skribis:
>
> > On 2013-07-12 11:55:50 +0200, Vincent Lefevre wrote:
> >> On 2013-07-12 11:15:15 +0200, Ludovic Courtès wrote:
>
> [...]
>
> >> > However, it may be that ./conftest above is picking /usr/lib/libgmp.so
> >> > at run time, presumably because /nix/store/...-gmp-4.3.2/lib is not in
> >> > the loader’s search path. Nixpkgs’s ld-wrapper normally adds it to the
> >> > RPATH [0], but perhaps this has lower precedence than /usr/lib?
> >>
> >> It didn't: there's no trace of -rpath in the above gcc line.
> >>
> >> And $LD_RUN_PATH was not predefined either. MPFR's configure does:
> > [...]
> >
> > I've done a test on a Solaris machine, and providing LD_RUN_PATH in
> > addition to CPPFLAGS and LDFLAGS works.
>
> Are you saying that if you don’t do that, /usr/lib is searched *before*
> the RPATH?
I didn't set RPATH.
If I do:
./configure CPPFLAGS=-I/home/vlefevre/i386-solaris/include
LDFLAGS=-L/home/vlefevre/i386-solaris/lib
I get the mismatch. But
./configure CPPFLAGS=-I/home/vlefevre/i386-solaris/include
LDFLAGS='-L/home/vlefevre/i386-solaris/lib -R/home/vlefevre/i386-solaris/lib'
and
./configure CPPFLAGS=-I/home/vlefevre/i386-solaris/include
LDFLAGS=-L/home/vlefevre/i386-solaris/lib
LD_RUN_PATH=/home/vlefevre/i386-solaris/lib
are OK.
Now, the -R option is non-standard and may fail on some platforms.
--
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)