This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]