Build libnettle with assembly code (#1292)

* Build libnettle with assembler code

* Add .gitattributes for shell script

* Patch nettle for CPU feature detection on Android

* Don't build libnettle at configuration time

* Fix build

* Refine
This commit is contained in:
FooIbar authored and GitHub committed 2024-06-09 13:49:36 +08:00
1 parent df6f783a69
commit f50d69cd60
9 files changed
+53 -592

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
TOOLCHAIN=$ANDROID_HOME/ndk/$1/toolchains/llvm/prebuilt/$(uname -s | tr '[:upper:]' '[:lower:]')-x86_64/bin
TARGET=$2
./configure --host=$TARGET --disable-public-key --disable-dependency-tracking \
AR=$TOOLCHAIN/llvm-ar \
CC="$TOOLCHAIN/clang -target $TARGET" \
RANLIB=$TOOLCHAIN/llvm-ranlib