summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.ac
diff options
context:
space:
mode:
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-16 14:46:57 +0000
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>2010-01-16 14:46:57 +0000
commit011fed15322bb8aca1831bb1a31e5e6f7b4e8624 (patch)
tree03aac1fd229668a4ec04abf179056fbfbccfb328 /libstdc++-v3/configure.ac
parenta72f32395fa7e865ce2fe097750a999c6d20979a (diff)
downloadgcc-011fed15322bb8aca1831bb1a31e5e6f7b4e8624.tar.gz
Fix PR 35942: remove -lstdc++ from libtool postdeps for CXX.
libstdc++-v3/: PR libstdc++/35942 * configure.ac: Remove -lstdc++ from libtool's postdeps_CXX. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155965 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure.ac')
-rw-r--r--libstdc++-v3/configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index 0137f0a1c66..9fe9c33964c 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.