mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Enable crypto extensions on ARMv8
This commit is contained in:
+1
-1
@@ -393,7 +393,7 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [
|
||||
AC_MSG_CHECKING(for ARM crypto instructions set with -march=armv8-a+crypto)
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]], [[ vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(__ARM_FEATURE_CRYPTO)) ]])],
|
||||
[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_MSG_RESULT(yes - with addition of -march=armv8-a+crypto)
|
||||
have_armcrypto=yes
|
||||
CFLAGS_ARMCRYPTO="-march=armv8-a+crypto"
|
||||
],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=armv8-a
|
||||
export TARGET_ARCH=armv8-a+crypto
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
NDK_PLATFORM=android-21 ARCH=arm64 HOST_COMPILER=aarch64-linux-android "$(dirname "$0")/android-build.sh"
|
||||
|
||||
Reference in New Issue
Block a user