summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Croxon <nigel.croxon@hp.com>2013-06-12 10:29:40 -0400
committerNigel Croxon <nigel.croxon@hp.com>2013-06-12 10:29:40 -0400
commit525455a9eaed23e007a0079ec54a7fcce7d7b02f (patch)
tree25b3d0f05bf9ff288298975f5fde0e15296f57e7
parent6e17af6dd7f3cea60475cd65473b210014cf122a (diff)
downloadgnu-efi-3.0-525455a9eaed23e007a0079ec54a7fcce7d7b02f.tar.gz
gnu-efi-3.0-525455a9eaed23e007a0079ec54a7fcce7d7b02f.tar.xz
gnu-efi-3.0-525455a9eaed23e007a0079ec54a7fcce7d7b02f.zip
bug in make 3.82 expand to odd values
Some Makefiles tickle a bug in make 3.82 that cause libefi.a and libgnuefi.a dependencies to expand to the odd values: libefi.a: boxdraw.o) smbios.o) ... libgnuefi.a(reloc_x86_64.o: The patch replaces libgnuefi.a($(OBJS)) & libefi.a($(OBJS)) with an equivalent expansion that should work with any make that supports $(patsubst).
-rw-r--r--gnu-efi-3.0/gnuefi/Makefile2
-rw-r--r--gnu-efi-3.0/lib/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu-efi-3.0/gnuefi/Makefile b/gnu-efi-3.0/gnuefi/Makefile
index d450081..d01ca80 100644
--- a/gnu-efi-3.0/gnuefi/Makefile
+++ b/gnu-efi-3.0/gnuefi/Makefile
@@ -51,7 +51,7 @@ TARGETS = crt0-efi-$(ARCH).o libgnuefi.a
all: $(TARGETS)
-libgnuefi.a: libgnuefi.a($(OBJS))
+libgnuefi.a: $(patsubst %,libgnuefi.a(%),$(OBJS))
clean:
rm -f $(TARGETS) *~ *.o $(OBJS)
diff --git a/gnu-efi-3.0/lib/Makefile b/gnu-efi-3.0/lib/Makefile
index fcccced..0dcb5d3 100644
--- a/gnu-efi-3.0/lib/Makefile
+++ b/gnu-efi-3.0/lib/Makefile
@@ -66,7 +66,7 @@ all: libsubdirs libefi.a
libsubdirs:
for sdir in $(SUBDIRS); do mkdir -p $$sdir; done
-libefi.a: libefi.a($(OBJS))
+libefi.a: $(patsubst %,libefi.a(%),$(OBJS))
clean:
rm -f libefi.a *~ $(OBJS) */*.o