This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Test the just built windres/dlltool only
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Fri, 18 Feb 2005 14:59:35 -0800
- Subject: PATCH: Test the just built windres/dlltool only
windres/dlltool may not be built for all platforms. But we are picking
up them from PATH even if they weren't built at all. This patch
changes it.
H.J.
----
2005-02-18 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp: Set WINDRES only if windres is built. Set
DLLTOOL only if dlltool is built.
--- binutils/testsuite/config/default.exp.win 2004-11-05 14:41:25.000000000 -0800
+++ binutils/testsuite/config/default.exp 2005-02-18 14:30:17.384437504 -0800
@@ -62,11 +62,11 @@ if ![info exists READELF] then {
if ![info exists READELFFLAGS] then {
set READELFFLAGS ""
}
-if ![info exists WINDRES] then {
- set WINDRES [findfile $base_dir/windres]
+if {![info exists WINDRES] && [file exists $base_dir/windres]} then {
+ set WINDRES $base_dir/windres
}
-if ![info exists DLLTOOL] then {
- set DLLTOOL [findfile $base_dir/dlltool]
+if {![info exists DLLTOOL] && [file exists $base_dir/dlltool] } then {
+ set DLLTOOL $base_dir/dlltool
}
if ![file isdirectory tmpdir] {catch "exec mkdir tmpdir" status}