This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] binutils current: libiberty/configure and --with-build-subdir
- From: "H . J . Lu" <hjl at lucon dot org>
- To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Cc: binutils at sourceware dot cygnus dot com, gcc-patches at gcc dot gnu dot org,dj at redhat dot com, zack at codesourcery dot com
- Date: Mon, 4 Feb 2002 08:57:38 -0800
- Subject: Re: [patch] binutils current: libiberty/configure and --with-build-subdir
- References: <Pine.GSO.3.96.1020204171204.5750G-100000@delta.ds2.pg.gda.pl>
I am running into the same problem. DJ, Zack, could you please fix it?
Thanks.
H.J.
----
On Mon, Feb 04, 2002 at 05:38:05PM +0100, Maciej W. Rozycki wrote:
> 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; \