From: Richard Jones Date: Thu, 30 Apr 2009 17:59:02 +0000 (+0100) Subject: Enable parallel builds (Jim Meyering). X-Git-Tag: 1.0.16~6 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=89404ec0ba9781b55cb3a87689bcc519e7d73ea2;p=libguestfs.git Enable parallel builds (Jim Meyering). --- diff --git a/java/Makefile.am b/java/Makefile.am index d1c0da4..b49c303 100644 --- a/java/Makefile.am +++ b/java/Makefile.am @@ -96,4 +96,8 @@ TESTS_ENVIRONMENT = \ t/%.class: t/%.java $(JAVAC) $(JAVAC_FLAGS) -classpath libguestfs-$(VERSION).jar $< -endif \ No newline at end of file +endif + +# Tell version 3.79 and up of GNU make to not build goals in this +# directory in parallel. +.NOTPARALLEL: diff --git a/libguestfs.spec.in b/libguestfs.spec.in index fa55014..684f272 100644 --- a/libguestfs.spec.in +++ b/libguestfs.spec.in @@ -254,8 +254,7 @@ createrepo repo # 'INSTALLDIRS' ensures that perl libs are installed in the vendor dir # not the site dir. -# Uses javac which is incompatible with parallel make. -make INSTALLDIRS=vendor +make INSTALLDIRS=vendor %{?_smp_mflags} %check