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]

[PATCH] Bug in `ld/genscripts.sh'.


Hi,

[Please CC any replies as I'm not subscribed to the list]

There is a bug that gets triggered when configuring `binutils' with --prefix=
(this used on GNU/Hurd), `exec_prefix' in `ld/genscripts.sh' gets feed an wrong
number of arguments. The argument list should be 9 but as `exec_prefix' is
empty it will be 8, resulting in `ld/genscripts.sh' failing.

This patch will just put quotes around `${exec_prefix}' in `ld/Makefile.am',
thus fixing the bug.

Index: Makefile.am
===================================================================
RCS file: /cvs/src/src/ld/Makefile.am,v
retrieving revision 1.73
diff -u -r1.73 Makefile.am
--- Makefile.am	2001/10/30 15:20:10	1.73
+++ Makefile.am	2001/11/06 15:53:14
@@ -326,7 +326,7 @@
 
 # These all start with e so 'make clean' can find them.
 
-GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} ${exec_prefix} @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
+GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
 GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
 @TDIRS@
 

-- 
Alfred M. Szmidt

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