summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-05-19 15:59:56 -0400
committerJeffrey Walton <noloader@gmail.com>2021-05-19 15:59:56 -0400
commitf37591011d5a1fac0e54b2e12eeb421aa6b74077 (patch)
tree5fce6724419271462cd59b0bf9b73d283ff27231 /GNUmakefile
parent52f5bf8817a59f2a0d8277c831e21f1487c5396b (diff)
downloadcryptopp-git-f37591011d5a1fac0e54b2e12eeb421aa6b74077.tar.gz
Clear makefile variable TOPT as required
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 102e0376..3ba75ebf 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -120,6 +120,7 @@ ifeq ($(DETECT_FEATURES),1)
endif
TCOMMAND = $(CXX) $(TCXXFLAGS) $(TEXTRA) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT)
#TPROG = TestPrograms/test_cxx.cpp
+ #TOPT =
#$(info Testing compile... )
#$(info $(shell $(TCOMMAND)))
endif
@@ -216,6 +217,7 @@ endif # IS_MINGW
# Newlib needs _XOPEN_SOURCE=600 for signals
TPROG = TestPrograms/test_newlib.cpp
+TOPT =
HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w)
ifeq ($(strip $(HAVE_OPT)),0)
ifeq ($(findstring -D_XOPEN_SOURCE,$(CXXFLAGS)),)
@@ -432,6 +434,7 @@ ifeq ($(DETECT_FEATURES),1)
# CRYPTOPP_DISABLE_MIXED_ASM is now being added in config_asm.h for all
# Clang compilers. This test will need to be re-enabled if Clang fixes it.
#TPROG = TestPrograms/test_asm_mixed.cpp
+ #TOPT =
#HAVE_OPT = $(shell $(TCOMMAND) 2>&1 | wc -w)
#ifneq ($(strip $(HAVE_OPT)),0)
# CRYPTOPP_CXXFLAGS += -DCRYPTOPP_DISABLE_MIXED_ASM
@@ -1069,6 +1072,7 @@ endif # Valgrind
# Newlib test due to http://sourceware.org/bugzilla/show_bug.cgi?id=20268
ifneq ($(filter -DDEBUG -DDEBUG=1,$(CXXFLAGS)),)
TPROG = TestPrograms/test_cxx.cpp
+ TOPT =
USING_GLIBCXX := $(shell $(CXX)$(CXXFLAGS) -E $(TPROG) -c 2>&1 | $(GREP) -i -c "__GLIBCXX__")
ifneq ($(USING_GLIBCXX),0)
ifeq ($(HAS_NEWLIB),0)