[Bug libstdc++/66530] libstdc++ testsuite links to incorrect shared libstdc++ library

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 16 09:51:00 GMT 2015


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++"]
     }



More information about the Gcc-bugs mailing list