From cab09eedd644cebdb4390b8b269012350d291cba Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 19 Dec 2019 13:14:45 +1100 Subject: 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.1