diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-05-10 15:14:03 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-05-10 15:14:03 -0400 |
commit | 7e0f678055f4517543ff8b671bd8b27c843e7335 (patch) | |
tree | a31e6622e48f6dff37c4f8b11c45eb28208708dc /GNUmakefile | |
parent | 9e2da8980a5a13f116fc05be9e6abe7868a80d58 (diff) | |
download | cryptopp-git-7e0f678055f4517543ff8b671bd8b27c843e7335.tar.gz |
Use CPPFLAGS when testign features
Cross-compiles need the flags
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index b4d11b8c..102e0376 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -114,7 +114,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 |