summaryrefslogtreecommitdiff
path: root/GNUmakefile-cross
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-05-24 19:40:36 -0400
committerJeffrey Walton <noloader@gmail.com>2021-05-24 19:40:36 -0400
commit41edd50bd1972fdd23b92a0c668025f633e1456f (patch)
treecf4f078895a44a1c58daf00a8e3731d2c30fc34c /GNUmakefile-cross
parent01d374afd1514cf2d2898582ed5592a498096856 (diff)
downloadcryptopp-git-41edd50bd1972fdd23b92a0c668025f633e1456f.tar.gz
Fix makefiles to avoid spurious _XOPEN_SOURCE
Diffstat (limited to 'GNUmakefile-cross')
-rw-r--r--GNUmakefile-cross19
1 files changed, 7 insertions, 12 deletions
diff --git a/GNUmakefile-cross b/GNUmakefile-cross
index abaf7f9a..80a71bf9 100644
--- a/GNUmakefile-cross
+++ b/GNUmakefile-cross
@@ -200,20 +200,15 @@ 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%, $(CPPFLAGS) $(CXXFLAGS))
- ifneq ($(strip $(TCXXFLAGS)),)
- $(info Using testing flags: $(TCXXFLAGS))
- endif
- TCOMMAND = $(CXX) $(TCXXFLAGS) $(TEXTRA) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT)
- #TPROG = TestPrograms/test_cxx.cpp
- #TOPT =
- #$(info Testing compile... )
- #$(info $(shell $(TCOMMAND)))
+# Always print testing flags since some tests always happen, like 64-bit.
+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
-# For the previous messages
-$(info )
+# TCOMMAND is used for just about all tests. Make will lazy-evaluate
+# the variables when executed by $(shell $(TCOMMAND) ...).
+TCOMMAND = $(CXX) $(TCXXFLAGS) $(TEXTRA) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT)
###########################################################
##### X86/X32/X64 Options #####