summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2019-12-10 16:30:33 +0000
committerDavid Gibson <david@gibson.dropbear.id.au>2019-12-17 12:34:46 +1100
commit0eb1cb0b531eeaf79b572baec978d40eefe06ca8 (patch)
tree21d569266a2195fa6ea6e60fbd3e41e2b6be5a7c
parentc40aeb60b47a56e3d4d3aebb6fffff2117f8c9eb (diff)
downloaddevice-tree-compiler-0eb1cb0b531eeaf79b572baec978d40eefe06ca8.tar.gz
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 <david@gibson.dropbear.id.au>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 $<