From 0eb1cb0b531eeaf79b572baec978d40eefe06ca8 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 10 Dec 2019 16:30:33 +0000 Subject: [PATCH] Makefile: pass $(CFLAGS) also during dependency generation When Valgrind is not available NO_VALGRIND is set in CFLAGS, and this is needed during dependency generation as well as compilation. Message-Id: <20191210163033.9888-1-emaste@freefall.freebsd.org> Signed-off-by: David Gibson --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4d88157..da6cf92 100644 --- a/Makefile +++ b/Makefile @@ -344,7 +344,7 @@ clean: libfdt_clean pylibfdt_clean tests_clean %.d: %.c @$(VECHO) DEP $< - $(CC) $(CPPFLAGS) -MM -MG -MT "$*.o $@" $< > $@ + $(CC) $(CPPFLAGS) $(CFLAGS) -MM -MG -MT "$*.o $@" $< > $@ %.d: %.S @$(VECHO) DEP $<