]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/default.exp: Do not load libpath.exp if it does not binutils-csl-arm-2005q1-branchpoint
authorMark Mitchell <mark@codesourcery.com>
Fri, 25 Mar 2005 02:21:44 +0000 (02:21 +0000)
committerMark Mitchell <mark@codesourcery.com>
Fri, 25 Mar 2005 02:21:44 +0000 (02:21 +0000)
exist.
(CC): Provide fallback definition.
(CFLAGS): Likewise.
(CXX): Likewise.
(CXXFLAGS): Likewise.

ld/testsuite/ChangeLog
ld/testsuite/config/default.exp

index 04f2d450229fb027545bccf5ba9b00c8b962fb27..5aa3a95139ef6fd561b023578b7aa2ee3f761fb4 100644 (file)
@@ -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-23  Alan Modra  <amodra@bigpond.net.au>
 
        * ld-elf/tbss.s: Don't start directives in first column.
index b05ae0a10d53f0f6025e1cba41870e60c8808c0a..ad48cc744366730eb5b5e41842f3a9366d105c2d 100644 (file)
@@ -70,10 +70,28 @@ 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"
+    }
+}
+
+# "CC=$(CC_FOR_TARGET)", and other similar parameters.  But, if the
+# user invokes runtest directly (as when testing an installed linker),
+# these flags may not be set.
+if {![info exists CC]} {
+    set CC [find_gcc]
+}
+if {![info exists CFLAGS]} {
+    set CFLAGS "-g -O2"
+}
+if {![info exists CXX]} {
+    set CXX [find_g++]
+}
+if {![info exists CXXFLAGS]} {
+    set CXXFLAGS ""
 }
 
 # The mips64-*-linux-gnu compiler defaults to the N32 ABI after