g++.exp: Fix handling of LD_LIBRARY_PATH et al
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Sun, 24 Mar 2002 23:41:22 +0000 (23:41 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Sun, 24 Mar 2002 23:41:22 +0000 (23:41 +0000)
2002-03-25  David Billinghurst  <David.Billinghurst@riotinto.com>

* lib/g++.exp:  Fix handling of LD_LIBRARY_PATH et al
* lib/g77.exp:  Likewise
* lib/objc.exp: Likewise

From-SVN: r51279

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

index c6bfa0dd08f5a3e20788ee8cd02c2e9a05d30ccc..8ee75ef5b1f8aadd6bfceb3d7a79aace300363b0 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-25  David Billinghurst  <David.Billinghurst@riotinto.com>
+
+       * lib/g++.exp:  Fix handling of LD_LIBRARY_PATH et al
+       * lib/g77.exp:  Likewise
+       * lib/objc.exp: Likewise
+
 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
 
        * gcc.dg/Wswitch-default.c: New test.
index 274a09652015dd21b2cf48c53d00abc9850905bb..a9a49e4e619ccfa33342c4f49c55bf0f44f4801f 100644 (file)
@@ -159,6 +159,18 @@ proc g++_link_flags { paths } {
           append flags "-L${librx} ";
       }
     }
+
+    # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
+    # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
+    # (for the 64-bit ABI).  The right way to do this would be to modify
+    # 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
+
     return "$flags"
 }
 
@@ -278,23 +290,6 @@ proc g++_target_compile { source dest type options } {
     return [target_compile $source $dest $type $options]
 }
 
-#
-# g++_set_ld_library_path --
-# On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
-# called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
-# (for the 64-bit ABI).  The right way to do this would be to modify
-# unix.exp -- but that's not an option since it's part of DejaGNU
-# proper, so we do it here, by trickery.  We really only need to do 
-# this on IRIX, but it shouldn't hurt to do it anywhere else.
-#
-
-proc ${tool}_set_ld_library_path { name element op } {
-  setenv LD_LIBRARYN32_PATH [getenv LD_LIBRARY_PATH]
-  setenv LD_LIBRARY64_PATH [getenv LD_LIBRARY_PATH]
-}
-
-trace variable env(LD_LIBRARY_PATH) w ${tool}_set_ld_library_path
-
 #
 # ${tool}_option_help
 #
index 78a3384d68b9f835fc61a4518e4abeca5cb957c2..8ad51e9b56b15499a396f4527e9ec52b6c93950b 100644 (file)
@@ -94,6 +94,18 @@ proc g77_link_flags { paths } {
       }
       append ld_library_path ":${rootme}"
     }
+
+    # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
+    # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
+    # (for the 64-bit ABI).  The right way to do this would be to modify
+    # 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
+
     return "$flags"
 }
 
@@ -191,20 +203,3 @@ proc g77_target_compile { source dest type options } {
 
     return [target_compile $source $dest $type $options]
 }
-
-#
-# g77_set_ld_library_path --
-# On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
-# called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
-# (for the 64-bit ABI).  The right way to do this would be to modify
-# unix.exp -- but that's not an option since it's part of DejaGNU
-# proper, so we do it here, by trickery.  We really only need to do 
-# this on IRIX, but it shouldn't hurt to do it anywhere else.
-#
-
-proc ${tool}_set_ld_library_path { name element op } {
-  setenv LD_LIBRARYN32_PATH [getenv LD_LIBRARY_PATH]
-  setenv LD_LIBRARY64_PATH [getenv LD_LIBRARY_PATH]
-}
-
-trace variable env(LD_LIBRARY_PATH) w ${tool}_set_ld_library_path
index 7bd03cacf8274686a625e66b50ce22a60b9f94da..d82442c4382f9dbc89d93814203d6726ef25d871 100644 (file)
@@ -157,6 +157,18 @@ proc objc_target_compile { source dest type options } {
        append ld_library_path ":${libobjc_dir}"
     }
     lappend options "compiler=$OBJC_UNDER_TEST"
+
+    # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
+    # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
+    # (for the 64-bit ABI).  The right way to do this would be to modify
+    # 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
+
     return [target_compile $source $dest $type $options]
 }
 
@@ -241,20 +253,6 @@ if { [info procs prune_warnings] == "" } then {
     }
 }
 
-# On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
-# called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
-# (for the 64-bit ABI).  The right way to do this would be to modify
-# unix.exp -- but that's not an option since it's part of DejaGNU
-# proper, so we do it here, by trickery.  We really only need to do 
-# this on IRIX, but it shouldn't hurt to do it anywhere else.
-
-proc ${tool}_set_ld_library_path { name element op } {
-  setenv LD_LIBRARYN32_PATH [getenv LD_LIBRARY_PATH]
-  setenv LD_LIBRARY64_PATH [getenv LD_LIBRARY_PATH]
-}
-
-trace variable env(LD_LIBRARY_PATH) w ${tool}_set_ld_library_path
-
 # Utility used by mike-gcc.exp and c-torture.exp.
 # Check the compiler(/assembler/linker) output for text indicating that
 # the testcase should be marked as "unsupported".