This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/RFA] Always invoke config.sub using the shell


Configuring ld for amd64-unknown-openbsd3.6 failed for me.  I tracked
this down to an invocation of config.sub in configure.in.  The
invocations of config.sub generated by autoconf use the shell, but
there is one hand-written one that doesn't do this.  For some reason
config.sub wasn't executable in my tree, so amd64-unknown-openbsd3.6
wasn't canonicalized into x86_64-unknown-openbsd3.6.

OK to check this in?


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* configure.in: Be sure to invoke config.sub using the shell.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/ld/configure.in,v
retrieving revision 1.24
diff -u -p -r1.24 configure.in
--- configure.in 18 Jun 2004 16:13:13 -0000 1.24
+++ configure.in 12 Jan 2005 20:22:19 -0000
@@ -169,7 +169,7 @@ do
     all_targets=true
   else
     # Canonicalize the secondary target names.
-    result=`$ac_config_sub $targ_alias 2>/dev/null`
+    result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ_alias 2>/dev/null`
     if test -n "$result"; then
 	targ=$result
     else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]