From a6067da355a1f88ebcd002b104091939257dca6d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 5 Dec 2018 18:30:25 -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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 25dc0546..9bb08b97 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -122,7 +122,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