summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-03 20:33:47 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-11-03 20:33:47 +0000
commit9d28ad1bb24d9ed7f0283033c4771ece13b311a0 (patch)
treebc007650d7dd4f5d5d7d04d4c58a3aad70bff43d
parent18caf26ad92fc791d76b5a68a0fb45e681e1e17e (diff)
downloadppe42-gcc-9d28ad1bb24d9ed7f0283033c4771ece13b311a0.tar.gz
ppe42-gcc-9d28ad1bb24d9ed7f0283033c4771ece13b311a0.zip
* lib/g++.exp (g++_set_ld_library_path): New function.
Use it to set LD_LIBRARYN32_PATH and LD_LIBRARY64_PATH. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37234 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/g++.exp14
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 12fce882d9c..3644d57d19f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 3 13:32:14 2000 Mark P Mitchell <mark@codesourcery.com>
+
+ * lib/g++.exp (g++_set_ld_library_path): New function.
+ Use it to set LD_LIBRARYN32_PATH and LD_LIBRARY64_PATH.
+
2000-11-03 Bernd Schmidt <bernds@redhat.co.uk>
* gcc.dg/sequence-pt-1.c: A few new tests. Unify output for bogus
diff --git a/gcc/testsuite/lib/g++.exp b/gcc/testsuite/lib/g++.exp
index 8fe1f2a4c4a..e30df4210b1 100644
--- a/gcc/testsuite/lib/g++.exp
+++ b/gcc/testsuite/lib/g++.exp
@@ -293,6 +293,20 @@ 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 g++_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 g++_set_ld_library_path
+
# Utility used by mike-g++.exp and old-dejagnu.exp.
# Check the compiler(/assembler/linker) output for text indicating that
# the testcase should be marked as "unsupported".
OpenPOWER on IntegriCloud