Commit d11994a8 by Steven Bosscher

re PR other/12009 (g++.dg, compat.exp fail to crosscompile testcases)

	PR other/12009
	* g++.dg/compat/compat.exp:  Do not set LD_LIBRARY_PATH when
	testing a cross compiler, it causes spurious compile failures.
	* lib/g++.exp: Likewise.

Co-Authored-By: Dan Kegel <dank@kegel.com>

From-SVN: r74789
parent 8a1d8dd9
2003-12-18 Steven Bosscher <steven@gcc.gnu.org>
Dan Kegel <dank@kegel.com>
PR other/12009
* g++.dg/compat/compat.exp: Do not set LD_LIBRARY_PATH when
testing a cross compiler, it causes spurious compile failures.
* lib/g++.exp: Likewise.
2003-12-18 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/13262
......
......@@ -43,11 +43,13 @@ proc compat-fix-library-path { } {
global ld_library_path
# See comments in lib/g++.exp for why this is needed.
setenv LD_LIBRARY_PATH $ld_library_path
setenv SHLIB_PATH $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path
setenv DYLD_LIBRARY_PATH $ld_library_path
if {![is_remote target]} {
# See comments in lib/g++.exp for why this is needed.
setenv LD_LIBRARY_PATH $ld_library_path
setenv SHLIB_PATH $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path
}
}
#
......
......@@ -172,11 +172,14 @@ proc g++_link_flags { paths } {
# unix.exp -- but that's not an option since it's part of DejaGNU
# proper, so we do it here. We really only need to do
# this on IRIX, but it shouldn't hurt to do it anywhere else.
setenv LD_LIBRARY_PATH $ld_library_path
setenv SHLIB_PATH $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path
setenv DYLD_LIBRARY_PATH $ld_library_path
# Doing this does cause trouble when testing cross-compilers.
if {![is_remote target]} {
setenv LD_LIBRARY_PATH $ld_library_path
setenv SHLIB_PATH $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path
setenv LD_LIBRARY64_PATH $ld_library_path
setenv DYLD_LIBRARY_PATH $ld_library_path
}
return "$flags"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment