From b0f6331856c6bab1d599a90511a15e545b36dd65 Mon Sep 17 00:00:00 2001 From: Robin Linden Date: Wed, 16 Aug 2023 00:32:58 +0200 Subject: [PATCH] chore: Fix the Android CI job * Bump the targeted API on armeabi and x86 to 19 - Starting with the r24 NDK, Jelly Bean (APIs 16, 17, and 18) is no longer supported. * Build libsodium w/ --disable-pie - Workaround for `ld: error: relocation R_386_PC32 cannot be used against symbol 'crypto_auth_hmacsha512_init'; recompile with -fPIC` --- .github/scripts/cmake-android | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/cmake-android b/.github/scripts/cmake-android index 0c4e4ccb..d15f555c 100755 --- a/.github/scripts/cmake-android +++ b/.github/scripts/cmake-android @@ -10,7 +10,7 @@ ABI=${1:-"armeabi-v7a"} case $ABI in armeabi-v7a) TARGET=armv7a-linux-androideabi - NDK_API=16 + NDK_API=19 ;; arm64-v8a) TARGET=aarch64-linux-android @@ -18,7 +18,7 @@ case $ABI in ;; x86) TARGET=i686-linux-android - NDK_API=16 + NDK_API=19 ;; x86_64) TARGET=x86_64-linux-android @@ -47,7 +47,7 @@ fi cd libsodium git clean -ffdx autoreconf -fi -./configure --prefix="$PREFIX" --host="$TARGET" --with-sysroot="$SYSROOT" --disable-shared +./configure --prefix="$PREFIX" --host="$TARGET" --with-sysroot="$SYSROOT" --disable-shared --disable-pie make -j"$(nproc)" install cd ..