aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-03-24 23:36:03 +0000
committerMark Mitchell <mark@codesourcery.com>2005-03-24 23:36:03 +0000
commit99c05fe4f78b332c9e377f5040dcbf827b974c21 (patch)
tree0b55a4d9b9ff7f9f1874de8e5346bb7f377ab1ec
parent82f0cfbdccfe0aaf9c59df5491bc78c6886f5d39 (diff)
downloadgdb-99c05fe4f78b332c9e377f5040dcbf827b974c21.zip
gdb-99c05fe4f78b332c9e377f5040dcbf827b974c21.tar.gz
gdb-99c05fe4f78b332c9e377f5040dcbf827b974c21.tar.bz2
* config/default.exp: Do not load libpath.exp if it does not
exist. (CC): Provide fallback definition. (CFLAGS): Likewise. (CXX): Likewise. (CXXFLAGS): Likewise.
-rw-r--r--ld/testsuite/ChangeLog9
-rw-r--r--ld/testsuite/config/default.exp15
2 files changed, 21 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 8b1c497..9833bf2 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2005-03-24 Mark Mitchell <mark@codesourcery.com>
+
+ * config/default.exp: Do not load libpath.exp if it does not
+ exist.
+ (CC): Provide fallback definition.
+ (CFLAGS): Likewise.
+ (CXX): Likewise.
+ (CXXFLAGS): Likewise.
+
2005-03-24 Eric Christopher <echristo@redhat.com>
* ld-mips-elf/rel32-n32.d: Revert changes.
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index b05ae0a..9656bfb 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -70,10 +70,19 @@ if {![file isdirectory tmpdir/ld]} then {
set gcc_ld_flag "-B[pwd]/tmpdir/ld/"
# load the linker path
-load_lib tmpdir/libpath.exp
+if {[file exists tmpdir/libpath.exp]} {
+ load_lib tmpdir/libpath.exp
-foreach dir $libpath {
- set gcc_ld_flag "$gcc_ld_flag -L$dir"
+ foreach dir $libpath {
+ set gcc_ld_flag "$gcc_ld_flag -L$dir"
+ }
+}
+
+# The "make check" target in the Makefile passes in
+# "CC=$(CC_FOR_TARGET)". But, if the user invokes runtest directly
+# (as when testing an installed linker), CC may not be set.
+if {![info exists CC]} {
+ set CC [transform gcc]
}
# The mips64-*-linux-gnu compiler defaults to the N32 ABI after