summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2019-03-23 17:43:44 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2019-03-23 17:43:44 -0700
commit9372eaa277591e261ccf200446c02a2be989a11f (patch)
treef07f89093f23cff82806aeb977b05e0c3209c183
parent7604ff262930063ee71251fde31a38083868e808 (diff)
downloadgnu-efi-9372eaa277591e261ccf200446c02a2be989a11f.tar.gz
gnu-efi-9372eaa277591e261ccf200446c02a2be989a11f.tar.xz
gnu-efi-9372eaa277591e261ccf200446c02a2be989a11f.zip
gnuefi/Makefile: proper build rule for libgnuefi.a
The rule for libgnuefi.a relies on a builtin make rule, which once again breaks "make -r". Furthermore, using the (%) rule is inefficient and only necessary if a single archive is built from multiple Makefiles. Use a conventional .a rule, equivalent to what is already used in libefi/Makefile. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--gnuefi/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuefi/Makefile b/gnuefi/Makefile
index 2a61699..1b6827c 100644
--- a/gnuefi/Makefile
+++ b/gnuefi/Makefile
@@ -54,7 +54,8 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a
all: $(TARGETS)
-libgnuefi.a: $(patsubst %,libgnuefi.a(%),$(OBJS))
+libgnuefi.a: $(OBJS)
+ $(AR) $(ARFLAGS) $@ $^
clean:
rm -f $(TARGETS) *~ *.o $(OBJS)