Gentoo Archives: gentoo-dev

From: James Le Cuirot <chewi@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [EAPI 7] Cross-compile improvements (BDEPEND, BROOT, sysroot)
Date: Thu, 03 Dec 2015 23:33:26
Message-Id: 20151203233254.339b1ed6@symphony.aura-online.co.uk
In Reply to: Re: [gentoo-dev] [EAPI 7] Cross-compile improvements (BDEPEND, BROOT, sysroot) by Joakim Tjernlund
1 On Thu, 3 Dec 2015 08:22:01 +0000
2 Joakim Tjernlund <Joakim.Tjernlund@××××××××.com> wrote:
3
4 > > There's also a further complication here that I forgot to mention to
5 > > mgorny. While calling configure with --with-sysroot certainly helps,
6 > > it still stumbles on a significant number of packages that do
7 > > relinking at the end of the build if elibtoolize hasn't been called.
8 > > elibtoolize has long patched ltmain.sh with
9 > > ELT-patches/cross/link-ROOT
10 >
11 > I looked at ELT-patches/cross/link-ROOT and it has
12 > --- libltdl/config/ltmain.sh 2008-09-07 19:56:33.000000000
13 > +0200 +++ libltdl/config/ltmain.sh.new 2009-02-15
14 > 20:37:47.000000000 +0100 @@ -5768,7 +5768,7 @@
15 >          test "$hardcode_direct_absolute" = no; then
16 >         add="$libdir/$linklib"
17 >       elif test "$hardcode_minus_L" = yes; then
18 > -       add_dir="-L$libdir"
19 > +       add_dir="-L$ROOT/$libdir"
20 >         add="-l$name"
21 >       elif test "$hardcode_shlibpath_var" = yes; then
22 >         case :$finalize_shlibpath: in
23 > @@ -5785,7 +5785,7 @@
24 >         fi
25 >       else
26 >         # We cannot seem to hardcode it, guess we'll fake it.
27 > -       add_dir="-L$libdir"
28 > +       add_dir="-L$ROOT/$libdir"
29 >
30 > I think this should be "add_dir=-L$lt_sysroot$libdir" rather than
31 > ROOT. See also bug https://bugs.gentoo.org/show_bug.cgi?id=521184
32 > and since I think this is also a libool bug there is a post upstream
33 >  http://lists.gnu.org/archive/html/libtool/2015-10/msg00012.html
34 > This has not gotten any attention from upstream libtool folks. Would
35 > be great if someone more could push for such a change.
36
37 Agreed. I already wondered if there was an autotools variable that
38 would be more appreciate. Since aballier also said that this should be
39 corrected, I'll see about doing that in conjunction with these changes.
40
41 I wouldn't hold your breath for upstream. I've heard of them ignoring
42 other issues like the "as-needed" one for years.
43
44 --
45 James Le Cuirot (chewi)
46 Gentoo Linux Developer

Replies

Subject Author
Re: [gentoo-dev] [EAPI 7] Cross-compile improvements (BDEPEND, BROOT, sysroot) Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>