Fix PR 35942: remove -lstdc++ from libtool postdeps for CXX.

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Thu Jan 7 20:02:00 GMT 2010


Bootstrapped and regtested on x86_64-unknown-linux-gnu, i.e., only
native build.  There has been no feedback yet whether this patch fixes
the PR, but I'm fairly confident.  OK for trunk when/if that is
confirmed?

Thanks,
Ralf

Fix PR 35942: remove -lstdc++ from libtool postdeps for CXX.

libstdc++-v3/ChangeLog:
2010-01-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	PR libstdc++/35942
	* configure.ac: Remove -lstdc++ from libtool's postdeps_CXX.
	* configure: Regenerate.

diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index 2ee2bdb..22c830b 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -98,6 +98,9 @@ AM_PROG_LIBTOOL
 AC_SUBST(enable_shared)
 AC_SUBST(enable_static)
 
+# Eliminate -lstdc++ addition to postdeps for cross compiles.
+postdeps_CXX=`echo " $postdeps_CXX " | sed 's, -lstdc++ ,,g'`
+
 # Possibly disable most of the library.
 ## TODO: Consider skipping unncessary tests altogether in this case, rather
 ## than just ignoring the results.  Faster /and/ more correct, win win.



More information about the Libstdc++ mailing list