openssl android ndk



android

 


export ANDROID_NDK_ROOT=G:/Package/Android/android-ndk-r10e
export PATH=$ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin:$PATH
./config android-arm -D__ANDROID_API__=18 --prefix=H:/library/openssl/openssl-android

CFLAGS=-Wall -O3
CXXFLAGS=-Wall -O3

如果ANDROID_NDK_ROOT 版本不对 手动更改


CNF_CFLAGS=-pthread  -mandroid --sysroot=$(ANDROID_NDK_ROOT)/platforms/android-18/arch-arm
CNF_CXXFLAGS=-std=c++11 -pthread  -mandroid --sysroot=$(ANDROID_NDK_ROOT)/platforms/android-18/arch-arm


H:\library\openssl\openssl-android\openssl-master\Configurations\15-android.conf
# die "\$ANDROID_NDK_ROOT=$ndk is invalid";


CROSS_COMPILE 没有则配置环境变量

open crypto/ec/ecp_nistz256-armv4.S
delete .rodata

posted @ 2021-04-07 15:25  YZFHKMS-X  阅读(155)  评论(0编辑  收藏  举报