From 963184515b4e6feb6c4ffef24ff9ea34337226c0 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Fri, 4 Jul 2014 11:55:22 +1000 Subject: Fix build with GNU Make 4.0 It expands our % on the right hand of the built-in.o rule into the directory name extracted from the prefix of the left hand and that makes ld puke. Signed-off-by: Benjamin Herrenschmidt --- Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index bfaa1a1..200abcb 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -46,7 +46,7 @@ endef %.i : %.c $(call Q,CC, $(CC) $(call cook_cflags,$@) -E -c $< -o $@, $@) -%built-in.o : % +%built-in.o : $(call Q,LD, $(LD) $(LDRFLAGS) -r $^ -o $@, $@) %.lds : %.lds.S -- cgit v1.1