g++.exp (g++_link_flags): Append LD_LIBRARY_PATH to ld_library_path.

2004-02-27  Aldy Hernandez  <aldyh@redhat.com>

	* lib/g++.exp (g++_link_flags): Append LD_LIBRARY_PATH to
	ld_library_path.

From-SVN: r78581
This commit is contained in:
Aldy Hernandez 2004-02-27 22:05:51 +00:00 committed by Aldy Hernandez
parent 238345774b
commit dab8eb5731
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-02-27 Aldy Hernandez <aldyh@redhat.com>
* lib/g++.exp (g++_link_flags): Append LD_LIBRARY_PATH to
ld_library_path.
2004-02-27 Ziemowit Laski <zlaski@apple.com>
* g++.dg/ext/altivec-3.C: New.

View File

@ -176,6 +176,10 @@ proc g++_link_flags { paths } {
# (SHLIB_PATH).
# Doing this does cause trouble when testing cross-compilers.
if {![is_remote target]} {
global env;
if { $env(LD_LIBRARY_PATH) != "" } {
append ld_library_path ":$env(LD_LIBRARY_PATH)";
}
setenv LD_LIBRARY_PATH $ld_library_path
setenv SHLIB_PATH $ld_library_path
setenv LD_LIBRARYN32_PATH $ld_library_path