This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13391] AIX: collect2 emits bad code with duplicated symbols
- From: "dje at watson dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2004 17:28:53 -0000
- Subject: [Bug target/13391] AIX: collect2 emits bad code with duplicated symbols
- References: <20031212191310.13391.greed@pobox.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dje at watson dot ibm dot com 2004-03-04 17:28 -------
Subject: Re: AIX: collect2 emits bad code with duplicated symbols
The static libraries are being included in the libstc++ archive
because of a bug in ltconfig. Please try the following patch.
* ltconfig: Disable building static libraries if building shared
libraries on AIX 5L.
Index: ltconfig
===================================================================
RCS file: /cvs/gcc/gcc/ltconfig,v
retrieving revision 1.29
diff -c -p -r1.29 ltconfig
*** ltconfig 19 Nov 2003 05:29:32 -0000 1.29
--- ltconfig 4 Mar 2004 17:19:42 -0000
*************** aix3*)
*** 1592,1598 ****
fi
;;
! aix4*)
test "$enable_shared" = yes && enable_static=no
;;
esac
--- 1593,1599 ----
fi
;;
! aix4* | aix5*)
test "$enable_shared" = yes && enable_static=no
;;
esac
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391