From 7656ff2b49515eb722f4071b52c68d12e7c223d3 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 5 Dec 2018 18:35:21 -0500 Subject: [PATCH] Fix Fedora and Red Hat feature tests They use a hardened build and include flags like -Werror=XXX and -Wp,FORTIFY_SOURCE --- GNUmakefile-cross | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile-cross b/GNUmakefile-cross index c680f52f..b423c149 100755 --- a/GNUmakefile-cross +++ b/GNUmakefile-cross @@ -184,7 +184,7 @@ endif # Strip out -Wall, -Wextra and friends for feature testing ifeq ($(DETECT_FEATURES),1) - TCXXFLAGS := $(filter-out -Wall -Wextra -Werror -Wunused -Wconversion, $(CXXFLAGS)) + TCXXFLAGS := $(filter-out -Wall -Wextra -Werror% -Wunused -Wconversion -Wp%, $(CXXFLAGS)) ifneq ($(strip $(TCXXFLAGS)),) $(info Using testing flags: $(TCXXFLAGS)) endif