[PATCH] Makefile: pass $(CFLAGS) also during dependency generation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Ed Maste <emaste@xxxxxxxxxxx>

When Valgrind is not available NO_VALGRIND is set in CFLAGS, and this
is needed during dependency generation as well as compilation.
---
 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 $<
-- 
2.24.0




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux