From: Ranjit Mathew Date: Sat, 26 Apr 2003 04:01:47 +0000 (+0000) Subject: testsuite_flags.in: Guard against the possibility of having "xgcc" as a part of a... X-Git-Tag: releases/gcc-3.4.0~7025 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04ab0b3e0989aa8f142f3cdb6402724f5d13ab55;p=thirdparty%2Fgcc.git testsuite_flags.in: Guard against the possibility of having "xgcc" as a part of a folder name in... 2003-04-25 Ranjit Mathew Phil Edwards * testsuite_flags.in: Guard against the possibility of having "xgcc" as a part of a folder name in the path to the GCC build folder. * testsuite/Makefile.am: Likewise. * testsuite/Makefile.in: Regenerated. Co-Authored-By: Phil Edwards From-SVN: r66098 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c0afcf5d0d12..cfbb11aa29a1 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2003-04-25 Ranjit Mathew + Phil Edwards + + * testsuite_flags.in: Guard against the possibility + of having "xgcc" as a part of a folder name in the + path to the GCC build folder. + * testsuite/Makefile.am: Likewise. + * testsuite/Makefile.in: Regenerated. + 2003-04-25 Benjamin Kosnik PR libstdc++/10132 diff --git a/libstdc++-v3/testsuite/Makefile.am b/libstdc++-v3/testsuite/Makefile.am index ce598d3b5816..daf04ce54e44 100644 --- a/libstdc++-v3/testsuite/Makefile.am +++ b/libstdc++-v3/testsuite/Makefile.am @@ -38,8 +38,8 @@ RUNTESTFLAGS = ## CXX is actually a "C" compiler. These are real C++ programs. ## Do the same thing as `testsuite_flags --build-cxx` -CXX_fake = @glibcpp_CXX@ -CXX=`echo $(CXX_fake) | sed 's/xgcc/g++/g'` +CXX_build = @glibcpp_CXX@ +CXX=`echo "$(CXX_build)" | sed 's,gcc/xgcc ,gcc/g++ ,'` CXXLINK = \ LD_RUN_PATH=${LD_RUN_PATH:+$LD_RUN_PATH:}${glibcpp_builddir}/src/.libs\ $(LIBTOOL) --tag=CXX --mode=link $(CXX) \ diff --git a/libstdc++-v3/testsuite/Makefile.in b/libstdc++-v3/testsuite/Makefile.in index fde593ebf851..0e15995ab174 100644 --- a/libstdc++-v3/testsuite/Makefile.in +++ b/libstdc++-v3/testsuite/Makefile.in @@ -160,8 +160,8 @@ RUNTEST = `if [ -f @glibcpp_srcdir@/../dejagnu/runtest ] ; then \ AM_RUNTESTFLAGS = RUNTESTFLAGS = -CXX_fake = @glibcpp_CXX@ -CXX = `echo $(CXX_fake) | sed 's/xgcc/g++/g'` +CXX_build = @glibcpp_CXX@ +CXX = `echo "$(CXX_build)" | sed 's,gcc/xgcc ,gcc/g++ ,'` CXXLINK = \ LD_RUN_PATH=${LD_RUN_PATH:+$LD_RUN_PATH:}${glibcpp_builddir}/src/.libs\ $(LIBTOOL) --tag=CXX --mode=link $(CXX) \ diff --git a/libstdc++-v3/testsuite_flags.in b/libstdc++-v3/testsuite_flags.in index 4694be8cd029..568650dc5109 100755 --- a/libstdc++-v3/testsuite_flags.in +++ b/libstdc++-v3/testsuite_flags.in @@ -44,8 +44,8 @@ case ${query} in ;; --build-cxx) PCHFLAGS="-include bits/stdc++.h" - CC_build="@glibcpp_CXX@ ${PCHFLAGS}" - CXX=`echo $CC_build | sed 's/xgcc/g++/g'` + CXX_build="@glibcpp_CXX@ ${PCHFLAGS}" + CXX=`echo "$CXX_build" | sed 's,gcc/xgcc ,gcc/g++ ,'` echo ${CXX} ;; --cxxflags)