diff --git a/CMakeLists.txt b/CMakeLists.txt index be00ded..9721237 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -698,6 +698,9 @@ if(BUILD_SHARED_LIB) if(BUILD_ANDROID) target_link_libraries(${DYNAMIC_LIB_NAME} android log) + if(CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a") + target_compile_options(zto_pic PRIVATE -march=armv8-a+crypto) + endif() endif() if(NOT ZTS_DISABLE_CENTRAL_API) target_link_libraries(${DYNAMIC_LIB_NAME} ${CURL_LIBRARIES})