This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/31774] inconsitency between gcc and g++ when linking with --as-needed
- From: "pva at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2007 05:56:45 -0000
- Subject: [Bug driver/31774] inconsitency between gcc and g++ when linking with --as-needed
- References: <bug-31774-14488@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pva at gentoo dot org 2007-05-02 06:56 -------
libtool bug was discussed earlier:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
But this bug is not about libtool. Libtool just expose problem, although it
should hide but that is another bug.
I may wish to have library not dependent on -pthread not linking with
libpthread. Then further linking with this library for gcc succeeds, while for
g++ not and this is what this bug is about. May be this should be fixed in gcc,
but as gcc works and even it does some specific actions it seems to me that
more natural fix will be to add same magic to g++. But proper solution is up to
gcc maintainers.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31774