* config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define to
authorJoseph Myers <joseph@codesourcery.com>
Tue, 26 Feb 2008 12:29:10 +0000 (12:29 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 26 Feb 2008 12:29:10 +0000 (12:29 +0000)
empty for testing an installed toolchain.

binutils/testsuite/ChangeLog
binutils/testsuite/config/default.exp

index bc86f493efdae2a89e057a344943d8988252a8aa..ac5be6d0c6455c6a9558fc459bb14838b55c7937 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-26  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/default.exp (gcc_gas_flag, dlltool_gas_flag): Define to
+       empty for testing an installed toolchain.
+
 2008-02-04  Bob Wilson  <bob.wilson@acm.org>
        
        * binutils-all/objdump.exp (cpus_expected): Add xtensa.
index 3c849b8d6586c54e194073ccd79410116e285647..930979f4f71ed2c48955e82de99597e4c6ec683f 100644 (file)
@@ -94,8 +94,14 @@ if {[file isfile ld/ld-new[exe_ext]]} then {
 } else {
     link_or_copy ld/ld-new ld[exe_ext]
 }
-set gcc_gas_flag "-B[pwd]/tmpdir/gas/"
-set dlltool_gas_flag "-S [pwd]/tmpdir/gas/as[exe_ext]"
+if {[file isfile tmpdir/gas/as[exe_ext]]} then {
+    set gcc_gas_flag "-B[pwd]/tmpdir/gas/"
+    set dlltool_gas_flag "-S [pwd]/tmpdir/gas/as[exe_ext]"
+} else {
+    # Testing an installed toolchain.
+    set gcc_gas_flag ""
+    set dlltool_gas_flag ""
+}
 
 #
 # binutils_run