Gentoo Archives: gentoo-alt

From: Alan Hourihane <alanh@×××××××××××.uk>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] readline ebuild problem
Date: Tue, 25 Nov 2008 17:29:06
Message-Id: 1227634139.13985.459.camel@jetpack.demon.co.uk
In Reply to: Re: [gentoo-alt] readline ebuild problem by Fabian Groffen
1 On Tue, 2008-11-25 at 18:21 +0100, Fabian Groffen wrote:
2 > On 25-11-2008 17:19:12 +0000, Alan Hourihane wrote:
3 > > On Tue, 2008-11-25 at 18:15 +0100, Fabian Groffen wrote:
4 > > > On 25-11-2008 17:12:04 +0000, Alan Hourihane wrote:
5 > > > > But I don't see why static libraries shouldn't be moved out of /lib
6 > > > > anyway, they should always be in /usr/lib.
7 > > > >
8 > > > > So why don't we just remove the
9 > > > >
10 > > > > [[ $(get_libname) != .a ]] &&
11 > > > >
12 > > > > and leave the mv there ??
13 > > >
14 > > > I think gentoo-x86 thinks otherwise. GCC would think it had to link
15 > > > against the static libraries if it encountered them in /usr/lib next to
16 > > > the dynamic ones. There's a comment on that somewhere.
17 > >
18 > > Eh??
19 > >
20 > > Linking to static libraries requires "gcc -static" to link against
21 > > static libraries. It defaults to shared, then static without.
22 >
23 > http://bugs.gentoo.org/4411
24 >
25
26 As far as I can see, there is no problem in 4411.
27
28 It's solved with the gen_usr_ldscript which creates libreadline.so
29 in /usr/lib, and so isn't a problem on gentoo-x86. Plus the fact the ld
30 search order is /lib, then /usr/lib.
31
32 I think the best solution is to then use...
33
34 [[ ${CHOST} != *-aix* ]] &&
35 mv "${ED}"/$(get_libdir)/lib{readline,history}.a
36 "${ED}"/usr/$(get_libdir)/
37
38 Alan.

Replies

Subject Author
Re: [gentoo-alt] readline ebuild problem Alan Hourihane <alanh@×××××××××××.uk>