aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2019-12-19 13:14:45 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-12-19 13:14:45 +1100
commitcab09eedd644cebdb4390b8b269012350d291cba (patch)
tree175a5fe37eddba282ab70b756cfe039cdcd93ed6 /Makefile
parent0eb1cb0b531eeaf79b572baec978d40eefe06ca8 (diff)
downloaddtc-cab09eedd644cebdb4390b8b269012350d291cba.zip
dtc-cab09eedd644cebdb4390b8b269012350d291cba.tar.gz
dtc-cab09eedd644cebdb4390b8b269012350d291cba.tar.bz2
Move -DNO_VALGRIND into CPPFLAGS
Since -D sets preprocessor directives, it applies for the preprocessor not just the C compiler proper and so belongs in CPPFLAGS rather than CFLAGS. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index da6cf92..e73576a 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
NO_VALGRIND := $(shell $(PKG_CONFIG) --exists valgrind; echo $$?)
ifeq ($(NO_VALGRIND),1)
- CFLAGS += -DNO_VALGRIND
+ CPPFLAGS += -DNO_VALGRIND
else
CFLAGS += $(shell $(PKG_CONFIG) --cflags valgrind)
endif