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. ^_____^