Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: [prefix][aix] get out of aix dll hell
Date: Tue, 24 Apr 2007 15:51:57
Message-Id: 1177430071.6947.24.camel@localhost
In Reply to: Re: [gentoo-alt] Re: [prefix][aix] get out of aix dll hell by Fabian Groffen
1 On Tue, 2007-04-10 at 22:04 +0200, Fabian Groffen wrote:
2 > On 04-04-2007 00:25:46 +0200, Michael Haubenwallner wrote:
3 <snip>
4 > > [aixrtl-use.patch]:
5 > >
6 > > Unless specifying '-brtl', the linker will not search any 'libXXX.so',
7 > > so each of our now libtool-created sharedlibs will be ignored.
8 > >
9 > > OTOH, always specifiying '-brtl' did not make any problem for me yet.
10 > >
11 > > Additionally, we will have to add more runpath-logic to ld-wrapper in
12 > > binutils.
13 > > As a first start I do this specific aix-logic in native-cctools, having
14 > > a shell-wrapper around ld instead of a symlink.
15 >
16 > I don't quite get the script yet, but I'm not too bright at the moment.
17 > I prefer to implement it into the wrapper instead, though.
18
19 Ok, now I've a (hmm, quite huge?) patch for binutils-config, to do that
20 libpath-magic in the wrapper instead of a shell-script by
21 native-cctools.
22
23 There are three things:
24 1) as we don't want C++ here, I've added stringutil.[ch] to have easy
25 fully-dynamic string- and arglist-handling.
26 Maybe this also could be useful for ld-wrapper.c.
27
28 2) the aix-specific libpath-logic, designed as *plugin* to ld-wrapper.
29
30 3) We should not copy the sources to ${T}, but ${WORKDIR} instead,
31 because with FEATURE=keepwork, ${T} was cleaned between
32 src_unpack and src_compile.
33
34 /haubi/

Attachments

File name MIME type
binutils-config-aixld.patch text/x-patch