From 08b9e21e5a43574d70f872a9fce1c6c5af12ffaa Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 28 Feb 2019 06:42:16 -0500 Subject: [PATCH] Use TCXXFLAGS for feature tests in GNUmakefile-cross This mirrors PR #815, where we used CXXFLAGS instead of TCXXFLAGS for feature tests --- GNUmakefile-cross | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/GNUmakefile-cross b/GNUmakefile-cross index 664a8447..c13cd68b 100755 --- a/GNUmakefile-cross +++ b/GNUmakefile-cross @@ -387,7 +387,7 @@ ifeq ($(IS_ARM32),1) CXXFLAGS += -DCRYPTOPP_DISABLE_ASM endif -# IS_NEON +# IS_ARM32 endif ifeq ($(IS_ARMV8),1) @@ -417,7 +417,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_asimd.cxx TOPT = $(ASIMD_FLAG) - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifeq ($(strip $(HAVE_OPT)),0) ARIA_FLAG = $(ASIMD_FLAG) BLAKE2B_FLAG = $(ASIMD_FLAG) @@ -439,7 +439,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_crc.cxx TOPT = $(CRC_FLAG) - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifneq ($(strip $(HAVE_OPT)),0) CRC_FLAG = CXXFLAGS += -DCRYPTOPP_ARM_CRC32_AVAILABLE=0 @@ -447,7 +447,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_aes.cxx TOPT = $(AES_FLAG) - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifneq ($(strip $(HAVE_OPT)),0) AES_FLAG = CXXFLAGS += -DCRYPTOPP_ARM_AES_AVAILABLE=0 @@ -455,7 +455,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_pmull.cxx TOPT = $(PMULL_FLAG) - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifneq ($(strip $(HAVE_OPT)),0) PMULL_FLAG = CXXFLAGS += -DCRYPTOPP_ARM_PMULL_AVAILABLE=0 @@ -463,7 +463,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_sha.cxx TOPT = $(SHA_FLAG) - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifneq ($(strip $(HAVE_OPT)),0) SHA_FLAG = CXXFLAGS += -DCRYPTOPP_ARM_SHA_AVAILABLE=0 @@ -471,7 +471,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_sm3.cxx TOPT = -march=armv8.4-a+crypto - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifeq ($(strip $(HAVE_OPT)),0) SM3_FLAG = -march=armv8.4-a+crypto SM4_FLAG = -march=armv8.4-a+crypto @@ -479,7 +479,7 @@ ifeq ($(IS_ARMV8),1) TPROG = TestPrograms/test_arm_sha3.cxx TOPT = -march=armv8.4-a+crypto - HAVE_OPT = $(shell $(CXX) $(CXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) + HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(ACLE_FLAG) $(ZOPT) $(TOPT) $(TPROG) -o $(TOUT) 2>&1 | tr ' ' '\n' | wc -l) ifeq ($(strip $(HAVE_OPT)),0) SHA3_FLAG = -march=armv8.4-a+crypto SHA512_FLAG = -march=armv8.4-a+crypto