1 From 7e9a26b0fc0bd8ed64a5eced5ea78bcea8ae3bbc Mon Sep 17 00:00:00 2001
2 From: Romain Naour <romain.naour@openwide.fr>
3 Date: Sat, 17 Jan 2015 18:44:04 +0100
4 Subject: [PATCH 2/2] Fix parallel make failure for archives
6 Upstream-Status: Pending
8 The lib and gnuefi makefiles were using the lib.a() form which compiles
9 and ar's as a pair instead of compiling all and then ar'ing which can
10 parallelize better. This was resulting in build failures on larger values
13 See http://www.chemie.fu-berlin.de/chemnet/use/info/make/make_toc.html#TOC105
17 - rebase on top of 3.0.1 release]
19 Signed-off-by: Saul Wold <sgw@linux.intel.com>
20 Signed-off-by: Darren Hart <dvhart@linux.intel.com>
21 Signed-off-by: Romain Naour <romain.naour@openwide.fr>
23 gnuefi/Makefile | 3 ++-
25 2 files changed, 4 insertions(+), 2 deletions(-)
27 diff --git a/gnuefi/Makefile b/gnuefi/Makefile
28 index d234ac0..d29575d 100644
31 @@ -54,7 +54,8 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a
35 -libgnuefi.a: $(patsubst %,libgnuefi.a(%),$(OBJS))
40 rm -f $(TARGETS) *~ *.o $(OBJS)
41 diff --git a/lib/Makefile b/lib/Makefile
42 index 019ad57..c6abcae 100644
45 @@ -73,7 +73,8 @@ all: libsubdirs libefi.a
47 for sdir in $(SUBDIRS); do mkdir -p $$sdir; done
49 -libefi.a: $(patsubst %,libefi.a(%),$(OBJS))
54 rm -f libefi.a *~ $(OBJS) */*.o