Build static python launchers when targeting musl
Musl can be statically linked, build static python launchers when
targeting musl.
Bug: 179809553
Test: file out/soong/host/linux-x86/bin/py3-launcher-static64
Change-Id: I224319616b9b641ea47f8adb6499ade30322f3e1
diff --git a/build-prebuilts.sh b/build-prebuilts.sh
index 0bbb4ef..dafa8e3 100755
--- a/build-prebuilts.sh
+++ b/build-prebuilts.sh
@@ -112,6 +112,10 @@
ziptime
ziptool
)
+ SOONG_MUSL_BINARIES=(
+ py3-launcher-static64
+ py3-launcher-autorun-static64
+ )
SOONG_ASAN_BINARIES=(
acp
aidl
@@ -150,6 +154,7 @@
musl_sysroot32=""
musl_sysroot64=""
if [[ ${use_musl} = "true" ]]; then
+ binaries="${binaries} ${SOONG_MUSL_BINARIES[@]/#/${SOONG_HOST_OUT}/bin/}"
musl_sysroot32="${SOONG_OUT}/.intermediates/external/musl/libc_musl_sysroot/linux_musl_x86/gen/libc_musl_sysroot.zip"
musl_sysroot64="${SOONG_OUT}/.intermediates/external/musl/libc_musl_sysroot/linux_musl_x86_64/gen/libc_musl_sysroot.zip"
fi