summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCzarek Nakamoto <cyjan@mrcyjanek.net>2024-06-13 15:00:09 +0200
committerCzarek Nakamoto <cyjan@mrcyjanek.net>2024-06-13 15:00:09 +0200
commit21e05d6ef33aa3fc6e2550da3b2200d3bcedfc35 (patch)
tree1fda03cf4b0ebed447279b7a68bb65eb0ab63e96
parent0818d7cdc8d051a704c94f33571324cc42b5f8b1 (diff)
i hate arm
-rwxr-xr-xbuild_single.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/build_single.sh b/build_single.sh
index 7a2c44e..7f5110e 100755
--- a/build_single.sh
+++ b/build_single.sh
@@ -379,7 +379,12 @@ pushd release/$repo
fi
if [[ "$HOST_ABI" == "x86_64-linux-android" || "$HOST_ABI" == "i686-linux-android" || "$HOST_ABI" == "aarch64-linux-android" || "$HOST_ABI" == "armv7a-linux-androideabi" ]];
then
- cp ../../$repo/contrib/depends/${HOST_ABI}/native/sysroot/usr/lib/${HOST_ABI}/libc++_shared.so ${HOST_ABI}_libc++_shared.so
+ SYSROOT_TRIPLET=${HOST_ABI}
+ if [[ "${HOST_ABI}" == "armv7a-linux-androideabi" ]];
+ then
+ SYSROOT_TRIPLET="arm-linux-androideabi"
+ fi
+ cp ../../$repo/contrib/depends/${HOST_ABI}/native/sysroot/usr/lib/${SYSROOT_TRIPLET}/libc++_shared.so ${HOST_ABI}_libc++_shared.so
rm ${HOST_ABI}_libc++_shared.so.xz || true
xz -e ${HOST_ABI}_libc++_shared.so
fi