From 7e0f678055f4517543ff8b671bd8b27c843e7335 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 10 May 2021 15:14:03 -0400 Subject: Use CPPFLAGS when testign features Cross-compiles need the flags --- GNUmakefile-cross | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'GNUmakefile-cross') diff --git a/GNUmakefile-cross b/GNUmakefile-cross index ad10702b..35c6cdcc 100644 --- a/GNUmakefile-cross +++ b/GNUmakefile-cross @@ -201,7 +201,7 @@ endif # Strip out -Wall, -Wextra and friends for feature testing. FORTIFY_SOURCE is removed # because it requires -O1 or higher, but we use -O0 to tame the optimizer. ifeq ($(DETECT_FEATURES),1) - TCXXFLAGS := $(filter-out -D_FORTIFY_SOURCE=% -M -MM -Wall -Wextra -Werror% -Wunused -Wconversion -Wp%, $(CXXFLAGS)) + TCXXFLAGS := $(filter-out -D_FORTIFY_SOURCE=% -M -MM -Wall -Wextra -Werror% -Wunused -Wconversion -Wp%, $(CPPFLAGS) $(CXXFLAGS)) ifneq ($(strip $(TCXXFLAGS)),) $(info Using testing flags: $(TCXXFLAGS)) endif -- cgit v1.2.1