Parcourir la source

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).
Nigel Croxon il y a 12 ans
Parent
commit
525455a9ea
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      gnu-efi-3.0/gnuefi/Makefile
  2. 1 1
      gnu-efi-3.0/lib/Makefile

+ 1 - 1
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)

+ 1 - 1
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