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