AIX and broken collect2
Alexandre Oliva
aoliva@redhat.com
Mon Feb 12 21:07:00 GMT 2001
On Feb 12, 2001, Robert Boehne <rboehne@ricardo-us.com> wrote:
> I have been working to get Libtool to work with gcc under AIX 4-5,
> and there is one problem left that concerns the workaround for
> broken collect2 that was apparently checked in a few years ago:
> 1997-11-29 Gordon Matzigkeit <gord@gnu.org>
> * ltconfig.in (COLLECT_NAMES): Enable this workaround for a broken
> collect2 only on AIX 3. This avoids problems on other AIX
> versions. Reported by Stefan Westerfeld.
IIRC, this ChangeLog entry has nothing to do with this other check:
> Libtool under AIX checks for 'resolve_lib_name' in
> the output of strings `gcc -print-prog-name=collect2` and then sets
> a few things accordingly:
> On my system, PPC AIX 4.3, I don't seem to be getting the proper result.
FWIW, it works for me on AIX 4.1.5. I believe the different arises
from the fact that GCC's configuration headers for AIX 4.3 and above
define HAS_INIT_SECTION, so collect2 doesn't collect init symbols. So
this test would only be meaningful for AIX up to 4.2.
> As far as I can tell, the check isn't valid for gcc 2.95.2, so
> perhaps if the broken versions could be identified we could
> check that instead.
> What versions were broken?
Andrey Slepuhin <pooh@msu.ru>, who introduced this test, would
probably know. In fact, I have probably already asked him this
question. You may be able to find the answer in the archives of some
libtool mailing list, at http://mail.gnu.org/pipermail
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
More information about the Gcc
mailing list