|
From: | jedwards |
Subject: | Re: AIX patch for libtool.m4 |
Date: | Fri, 30 May 2003 13:59:33 -0600 |
User-agent: | Mozilla/5.0 (X11; U; AIX 0006844C4C00; en-US; rv:1.4a) Gecko/20000125 |
cc -Wl,-bM:SRE -o .libs/libhello.so.2 .libs/hello.o .libs/foo.o -lm -lc -Wl,-bE:.libs/libhello.exp -Wl,-bnoentry
ar cru libhello.a libhello.so.2 ar cru libhello.a hello.o foo.owhich puts both these objects files in the archive twice - only the first entry into the archive is read so this is just a waste of space. Now I notice that there is an exception in libtool.m4 for aix4 which sorta fixes this problem by not doing the second ar command - you could just extend that to aix5. But I think that its the wrong way to solve the problem. The first ar statement, not the second - is the one which should be eleminated to produce a standard AIX library. Now for run time linking support AIX has the -brtl flag which causes it to look for a file libname.so before libname.a I'm working on this change and I have almost everything going but its still failing a few of the tests - I should be there soon. You are right about the template problem - thats what got me going on this whole thing in the first place.
I'm probably not explaining things very well -I hope Rob that you will give my change fair consideration when I get it done - including reviewing it with other IBM authorities if you feel the need.
Boehne, Robert wrote:
The only thing I was aware of is that archive members can't be dlopen'd by libltdl because the right flags aren't passed. BTW, would you post a link or reference to why -qmkshrobj is needed with templates when building SYSV-style libraries? I wasn't aware of any problems with templates. Rob -----Original Message----- From: Albert Chin [mailto:address@hidden Sent: Friday, May 30, 2003 2:30 PM To: jedwards Cc: address@hidden Subject: Re: AIX patch for libtool.m4 On Fri, May 30, 2003 at 01:20:44PM -0600, jedwards wrote:I'm working on a general update to libtool.m4 for aix5 and aix library support - do you want to wait a week or so to see what I manage to do?I think the only thing lacking is xlC support. Of course, there's also 32/64-bit support but there's a workaround for that. What else are you working on?Albert Chin wrote:On Tue, May 27, 2003 at 02:40:04PM -0500, Boehne, Robert wrote:Ok, that was interesting. Apparently Jim, you are correct, it is valid to add -qmkshrobj to a -G command line. However, I do not believe thatLibtool should do this by default. If you want to add it yourself you can,Libtool allows this with -XCompiler -XLinker and -XCCLinker. If you still think this should be done by default, let us know why.Wel, to get xlC C++ support for AIX, we're going to need -qmkshrobj. I'm going to work on adding it this weekend. By default, -qmkshrobj will export all symbols. We create our own export list for xlc C shared libraries. Do we want to create our own export list for xlc C++ shared libraries as well?-- Jim Edwards address@hidden IBM Applications Analyst NCAR SCDBOULDER CO 303-497-1842_______________________________________________ Libtool-patches mailing list address@hidden http://mail.gnu.org/mailman/listinfo/libtool-patches
-- Jim Edwards address@hidden IBM Applications Analyst NCAR SCDBOULDER CO 303-497-1842
[Prev in Thread] | Current Thread | [Next in Thread] |