Commit a15791b0 by Nick Clifton Committed by Nick Clifton

Only invoke testsuite_flags if the libstdc++-v3 directory has been found.

From-SVN: r60252
parent e220f0a4
2002-12-18 Nick Clifton <nickc@redhat.com>
* lib/g++.exp (g++_include_flags): Only invoke testsuite_flags if
the libstdc++-v3 directory has been found.
2002-12-12 Devang Patel <dpatel@apple.com>
* gcc.dg/darwin-ld-1.c: New test.
* gcc.dg/darwin-ld-2.c: New test.
......
......@@ -90,7 +90,9 @@ proc g++_include_flags { paths } {
if { ${HAVE_LIBSTDCXX_V3} } {
set odir_v3 [lookfor_file ${gccpath} libstdc++-v3]
append flags [exec sh ${odir_v3}/testsuite_flags --build-includes]
if { ${odir_v3} != "" } {
append flags [exec sh ${odir_v3}/testsuite_flags --build-includes]
}
} else {
set odir_v2 [lookfor_file ${gccpath} libstdc++]
set sdir_v2 [lookfor_file ${srcdir} libstdc++]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment