diff mbox

Fix parallel build

Message ID 1330589518-3292-1-git-send-email-raj.khem@gmail.com
State New
Headers show

Commit Message

Khem Raj March 1, 2012, 8:11 a.m. UTC
When building in parallel (with -j8 here)
install-gcc-ar sometimes wants to install file
before the destination directory is created.

2012-02-29  Khem Raj  <raj.khem@gmail.com>

	* Makefile.in (install-gcc-ar): Add dependency on installdirs.
---
 gcc/Makefile.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Richard Biener March 1, 2012, 10:43 a.m. UTC | #1
On Thu, Mar 1, 2012 at 9:11 AM, Khem Raj <raj.khem@gmail.com> wrote:
> When building in parallel (with -j8 here)
> install-gcc-ar sometimes wants to install file
> before the destination directory is created.

Ok.

Thanks,
Richard.

> 2012-02-29  Khem Raj  <raj.khem@gmail.com>
>
>        * Makefile.in (install-gcc-ar): Add dependency on installdirs.
> ---
>  gcc/Makefile.in |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> index f6cf8ff..91c5794 100644
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -4811,7 +4811,7 @@ install-collect2: collect2 installdirs
>  install-lto-wrapper: lto-wrapper$(exeext)
>        $(INSTALL_PROGRAM) lto-wrapper$(exeext) $(DESTDIR)$(libexecsubdir)/lto-wrapper$(exeext)
>
> -install-gcc-ar:
> +install-gcc-ar: installdirs
>        set -e ; \
>        for i in ar nm ranlib ; do \
>          install_name=`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ;\
> --
> 1.7.9
>
diff mbox

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index f6cf8ff..91c5794 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -4811,7 +4811,7 @@  install-collect2: collect2 installdirs
 install-lto-wrapper: lto-wrapper$(exeext)
 	$(INSTALL_PROGRAM) lto-wrapper$(exeext) $(DESTDIR)$(libexecsubdir)/lto-wrapper$(exeext)
 
-install-gcc-ar:
+install-gcc-ar: installdirs
 	set -e ; \
 	for i in ar nm ranlib ; do \
 	  install_name=`echo gcc-$$i|sed '$(program_transform_name)'`$(exeext) ;\