This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] binutils current: libiberty/configure and --with-build-subdir
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- To: binutils at sourceware dot cygnus dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 4 Feb 2002 17:38:05 +0100 (MET)
- Subject: [patch] binutils current: libiberty/configure and --with-build-subdir
- Organization: Technical University of Gdansk
Hello,
When invoking:
$ ./configure --build=i386-linux --host=mipsel-linux --target=mipsel-linux
$ make
the compilation bails out as follows:
Configuring in i386-linux/libiberty
[...]
make[1]: Leaving directory `/home/macro/tmp/binutils/binutils/i386-linux/libiberty'
creating cache ../config.cache
configure: error: can not find install-sh or install.sh in ./.. ././..
make: *** [configure-build-libiberty] Error 1
This happens because libiberty's configure does not recognize the
"--with-build-subdir" option and it does note the fact it's being run for
a subdirectory.
The following hack seems to work, but I'm not convinced it's the right
fix. Possibly the "--with-build-subdir" option should be added, but then
what if both "--with-build-subdir" and "--with-target-subdir" were
specified? Any thoughts?
2002-02-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
* Makefile.in (CONFIGURE_BUILD_MODULES rule): Use
"--with-target-subdir" and not "--with-build-subdir" as
sub-configures do not recognize the latter.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
binutils-2.11.93-20020129-target-subdir.patch
diff -up --recursive --new-file binutils.macro/Makefile.in binutils/Makefile.in
--- binutils.macro/Makefile.in Thu Nov 29 04:25:33 2001
+++ binutils/Makefile.in Wed Jan 30 23:00:16 2002
@@ -1295,12 +1295,12 @@ $(CONFIGURE_BUILD_MODULES):
rm -f no-such-file skip-this-dir; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
- --with-build-subdir="$(BUILD_SUBDIR)"; \
+ --with-target-subdir="$(BUILD_SUBDIR)"; \
else \
rm -f no-such-file skip-this-dir; \
CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \
- --with-build-subdir="$(BUILD_SUBDIR)"; \
+ --with-target-subdir="$(BUILD_SUBDIR)"; \
fi || exit 1; \
if [ -f skip-this-dir ] ; then \
sh skip-this-dir; \