1 |
On 02/10/2011 10:11 PM, Perry Smith wrote: |
2 |
> On Feb 10, 2011, at 9:32 AM, Michael Haubenwallner wrote: |
3 |
>> |
4 |
>> Right now I've checked in the changes to use the new shared library |
5 |
>> model called "aix-soname" I've proposed recently along bug#213277 [1]. |
6 |
> |
7 |
> Can you tell us which version you picked? At one point you had about |
8 |
> five ideas you were weighing. |
9 |
|
10 |
Ohw sorry, sure: The one I've posted at libtool mailing list[1][2] as well as |
11 |
in the IBM AIX Developers forum[3], and recently to the binutils mailing list[4]. |
12 |
While the big agreement on that variant is still not there - maybe because of |
13 |
less interest (there's not much response anywhere), I've implemented that in |
14 |
Prefix now for both prove-of-concept as well as to identify possible problems. |
15 |
|
16 |
How I prefer doing "shared libraries" with "soname" on AIX now is: |
17 |
|
18 |
*) Create the shared object "shr.o" (using '-G' linker flag). |
19 |
*) Set the LOADONLY flag for "shr.o" (using 'strip -e'). |
20 |
*) Create the Import File "shr.imp", containing |
21 |
- this header line, being the "soname" emulation: |
22 |
#! libNAME.so.1(shr.o) |
23 |
- another header line telling the bits used: |
24 |
# 32 |
25 |
or |
26 |
# 64 |
27 |
- the list of symbols exported. |
28 |
*) Create the archive library "libNAME.so.1.2.3" from both |
29 |
"shr.imp" and "shr.o". |
30 |
*) Create the symlinks as usual: |
31 |
libNAME.so.1 -> libNAME.so.1.2.3 |
32 |
libNAME.so -> libNAME.so.1.2.3 |
33 |
*) Create the static library archive "libNAME.a" from static objects. |
34 |
|
35 |
[1] http://lists.gnu.org/archive/html/libtool/2011-01/msg00023.html |
36 |
[2] http://lists.gnu.org/archive/html/libtool/2011-02/msg00000.html |
37 |
[3] http://www.ibm.com/developerworks/forums/thread.jspa?threadID=358893 |
38 |
[4] http://sourceware.org/ml/binutils/2011-02/msg00099.html |
39 |
|
40 |
/haubi/ |
41 |
-- |
42 |
Michael Haubenwallner |
43 |
Gentoo on a different level |