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

jy38 at zips dot uakron.edu gcc-bugzilla@gcc.gnu.org
Tue Jun 16 18:18:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66530

--- Comment #7 from Jennifer Yao <jy38 at zips dot uakron.edu> ---
(In reply to Jonathan Wakely from comment #4)
> 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++"]
>      }

Just tested setting PATH with a separate test program on Cygwin, and it works.
^_____^



More information about the Gcc-bugs mailing list