summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-02-10 22:23:04 -0500
committerJeffrey Walton <noloader@gmail.com>2022-02-10 22:23:04 -0500
commit4a0857f4911a2a4ee774f5ff1e5dae2bf0c2a12f (patch)
treeb2efe23d13c71e3ed3e2b286dfe44365f998b5f6 /GNUmakefile
parent0fd499946f74f39e10d37318a44fbb664f988637 (diff)
downloadcryptopp-git-4a0857f4911a2a4ee774f5ff1e5dae2bf0c2a12f.tar.gz
Fix Cryptogams ARMv7 test
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index d01eeeba..e245d623 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1183,7 +1183,7 @@ ifeq ($(IS_ARM32)$(IS_LINUX),11)
ifeq ($(filter -DCRYPTOPP_DISABLE_ASM -DCRYPTOPP_DISABLE_ARM_NEON,$(CPPFLAGS)$(CXXFLAGS)),)
# Do not use -march=armv7 if the compiler is already targeting the ISA.
# Also see https://github.com/weidai11/cryptopp/issues/1094
- ifneq ($($(CXX) -dM -E - </dev/null 2>/dev/null| grep -E 'ARM_ARCH 7|_ARM_ARCH_7A__'),)
+ ifeq ($(CXX) -dM -E TestPrograms/test_cxx.cpp 2>/dev/null | grep -E '__ARM_ARCH 7|__ARM_ARCH_7A__',)
CRYPTOGAMS_ARMV7_FLAG = -march=armv7-a
endif
ifeq ($(CLANG_COMPILER),1)