]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Only select default ABIs when building OpenSSL
authorTobias Brunner <tobias@strongswan.org>
Fri, 21 Mar 2025 07:48:34 +0000 (08:48 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 14 Apr 2025 09:54:42 +0000 (11:54 +0200)
This skips the experimental RISC-V ABI in newer NDKs.

src/frontends/android/openssl/compile.sh

index 86bd15c5c9a186df091031a38c421d7190d1d3ca..20d344f580f18cdb0de1b0cb3afd55cc1e620d58 100755 (executable)
@@ -12,7 +12,7 @@ export PATH=${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
 export ANDROID_NDK_HOME=${ANDROID_NDK_ROOT}
 
 # automatically determine the ABIs supported by the NDK
-: ${ABIS=$(jq -r 'keys | join(" ")' ${ANDROID_NDK_ROOT}/meta/abis.json)}
+: ${ABIS=$(jq -r 'map_values(select(.default == true)) | keys | join(" ")' ${ANDROID_NDK_ROOT}/meta/abis.json)}
 
 # this should match APP_PLATFORM
 : ${MIN_SDK=21}