[syslinux:master] core: Add workaround in the Makefile for GNU Make 3.82 bug

syslinux-bot for H. Peter Anvin hpa at zytor.com
Thu Dec 16 19:48:51 PST 2010


Commit-ID:  a5391126988392f66180202918d97f70e434fd5c
Gitweb:     http://syslinux.zytor.com/commit/a5391126988392f66180202918d97f70e434fd5c
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 16 Dec 2010 19:45:57 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 16 Dec 2010 19:45:57 -0800

core: Add workaround in the Makefile for GNU Make 3.82 bug

Apparently GNU Make 3.82 mishandles pattern rules with fixed
dependencies, sigh.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 core/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/core/Makefile b/core/Makefile
index 1330fb9..87ad97d 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -79,7 +79,9 @@ kwdhash.gen: keywords genhash.pl
 %.raw: %.elf
 	$(OBJCOPY) -O binary $< $(@:.bin=.raw)
 
-%.bin: %.raw $(PREPCORE)
+# GNU make 3.82 gets confused by the first form
+#%.bin: %.raw $(PREPCORE)
+%.bin: %.raw
 	$(PREPCORE) $< $@
 
 %.o: %.asm kwdhash.gen ../version.gen



More information about the Syslinux-commits mailing list