From 1d32a77299d85c86579f55b6a211e27c9a7dd9d0 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 22 Dec 2009 22:11:27 +0000 Subject: re PR target/41605 (Static linking of libgcc/libgfortran/libstdc++ can cause inconsistent symbol resolution.) 2009-12-22 Iain Sandoe gcc/ PR target/41605 * lib/g++.exp: Provide -B options to allow for link spec %s substitutions for static libraries. libstdc++-v3/ PR target/41605 * testsuite/libstdc++-abi/abi.exp: Provide -B options to allow for link spec %s substitutions for static libraries. * testsuite/lib/libstdc++.exp: Ditto libgomp/ PR target/41605 * testsuite/lib/libgomp.exp: Provide -B options to allow for link spec %s substitutions for static libraries. From-SVN: r155408 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/lib/g++.exp | 3 +++ 2 files changed, 9 insertions(+) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8d859a4e..9cf74ee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-12-22 Iain Sandoe + + PR target/41605 + * lib/g++.exp: Provide -B options to allow for link spec %s + substitutions for static libraries. + 2009-12-22 Brian Hackett * g++.dg/plugin/attribute_plugin.c: Rename pre-genericize event. diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp index df6030b..9de817b 100644 --- a/gcc/testsuite/lib/g++.exp +++ b/gcc/testsuite/lib/g++.exp @@ -125,6 +125,9 @@ proc g++_link_flags { paths } { } if [file exists "${gccpath}/libstdc++-v3/src/.libs/libstdc++.a"] { append flags " -L${gccpath}/libstdc++-v3/src/.libs " + # Some targets use libstdc++.a%s in their specs, so they need a + # -B option for uninstalled testing. + append flags " -B${gccpath}/libstdc++-v3/src/.libs " append ld_library_path ":${gccpath}/libstdc++-v3/src/.libs" } # Look for libstdc++.${shlib_ext}. -- cgit v1.1