This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/66530] libstdc++ testsuite links to incorrect shared libstdc++ library
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Jun 2015 09:51:53 +0000
- Subject: [Bug libstdc++/66530] libstdc++ testsuite links to incorrect shared libstdc++ library
- Auto-submitted: auto-generated
- References: <bug-66530-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66530
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Does this patch fix it?
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -226,6 +226,11 @@ proc libstdc++_init { testfile } {
if [info exists env(LD_LIBRARY_PATH)] {
verbose -log "LD_LIBRARY_PATH = $env(LD_LIBRARY_PATH)"
}
+
+ # Cygwin uses PATH not LD_LIBRARY_PATH, see
https://gcc.gnu.org/PR66530
+ if { [ishost "*-*-cygwin*"] } {
+ setenv PATH "$ld_library_path:$env(PATH)"
+ }
} else {
set compiler [transform "g++"]
}