mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Fix Android cross-compile due to missing flags on gcm_simd.cpp and gf2n_simd.cpp
This commit is contained in:
parent
274ba9dcf1
commit
03975ac51a
@ -479,7 +479,7 @@ ifeq ($(DETECT_FEATURES),1)
|
|||||||
TPROG = TestPrograms/test_arm_pmull.cxx
|
TPROG = TestPrograms/test_arm_pmull.cxx
|
||||||
TOPT = $(PMULL_FLAG)
|
TOPT = $(PMULL_FLAG)
|
||||||
HAVE_OPT = $(shell $(CXX) $(TCXXFLAGS) $(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)
|
ifneq ($(strip $(HAVE_OPT)),0)
|
||||||
GCM_FLAG =
|
GCM_FLAG =
|
||||||
GF2N_FLAG =
|
GF2N_FLAG =
|
||||||
CXXFLAGS += -DCRYPTOPP_ARM_PMULL_AVAILABLE=0
|
CXXFLAGS += -DCRYPTOPP_ARM_PMULL_AVAILABLE=0
|
||||||
@ -894,6 +894,10 @@ crc_simd.o : crc_simd.cpp
|
|||||||
gcm_simd.o : gcm_simd.cpp
|
gcm_simd.o : gcm_simd.cpp
|
||||||
$(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $<
|
$(CXX) $(strip $(CXXFLAGS) $(GCM_FLAG) -c) $<
|
||||||
|
|
||||||
|
# Carryless multiply
|
||||||
|
gf2n_simd.o : gf2n_simd.cpp
|
||||||
|
$(CXX) $(strip $(CXXFLAGS) $(GF2N_FLAG) -c) $<
|
||||||
|
|
||||||
# SSSE3 available
|
# SSSE3 available
|
||||||
lea_simd.o : lea_simd.cpp
|
lea_simd.o : lea_simd.cpp
|
||||||
$(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $<
|
$(CXX) $(strip $(CXXFLAGS) $(LEA_FLAG) -c) $<
|
||||||
|
Loading…
Reference in New Issue
Block a user