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-cross | |
parent | 9e2da8980a5a13f116fc05be9e6abe7868a80d58 (diff) | |
download | cryptopp-git-7e0f678055f4517543ff8b671bd8b27c843e7335.tar.gz |
Use CPPFLAGS when testign features
Cross-compiles need the flags
Diffstat (limited to 'GNUmakefile-cross')
-rw-r--r-- | GNUmakefile-cross | 2 |
1 files changed, 1 insertions, 1 deletions
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 |