2004-02-27 Aldy Hernandez <aldyh@redhat.com>
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Feb 2004 22:05:51 +0000 (22:05 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Feb 2004 22:05:51 +0000 (22:05 +0000)
* lib/g++.exp (g++_link_flags): Append LD_LIBRARY_PATH to
ld_library_path.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78581 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/g++.exp

index e8bd8eb..b1ef10f 100644 (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.
index a9f99fa..c3410db 100644 (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