libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: AIX patch for libtool.m4


From: Boehne, Robert
Subject: RE: AIX patch for libtool.m4
Date: Tue, 27 May 2003 14:40:04 -0500

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 that
Libtool 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.
 
Thanks,
 
Robert
-----Original Message-----
From: jedwards [mailto:address@hidden
Sent: Tuesday, May 27, 2003 2:24 PM
To: Boehne, Robert
Cc: address@hidden
Subject: Re: AIX patch for libtool.m4

Boehne, Robert wrote:
Jim,

According to:
  http://www-1.ibm.com/servers/esdd/pdfs/aix_ll.pdf

One should create an AIX style library with -qmkshrobj and
create a SYSV-compat library with -G.  The two options should
not be used together.  All of the AIX support code in Libtool
has been written or looked over by IBM engineers in Austin, so
I'm very confident that Libtool is building these libraries correctly.

Thanks,

Robert Boehne

  
Robert,

Thank you for the reference,  however I cannot find anywhere a statement to the effect that these two flags should not be used together.  In fact on page 18 the reader is refered to C and C++ Application Development on AIX which clearly states on page 83 that these options can and should be used together.  I'm sure that you realize that if things had been working correctly I would not have felt the urge to send you a patch. 

Thank You,
Jim
-----Original Message-----
From: jedwards [mailto:address@hidden]
Sent: Tuesday, May 27, 2003 12:35 PM
To: address@hidden
Subject: AIX patch for libtool.m4


Hi,

The following patch for AIX 5 and xlC 6.0 causes shared libraries to be 
built correctly with xlC when LDFLAGS=-brtl is in the environment.  I 
think that this probably ought to be the default rather than the 
exception.  If you are interested I can look into changing things so 
that it is.


diff -r1.314.2.2 libtool.m4
2806c2806
< 	  shared_flag='${wl}-G'
---
 > 	  shared_flag='${wl}-G -qmkshrobj'




  


-- 
Jim Edwards             address@hidden
IBM Applications Analyst
NCAR SCD
BOULDER CO  303-497-1842 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]