commit: d9af8c471b58b64f251f776c7b67606c488cfab3
parent 9e78a714caad8de2fd9e0ae7c54ed0351bb20199
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 8 Feb 2025 17:47:55 +0100
make-root.sh: remove alloca.h on riscv
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/make-root.sh b/make-root.sh
@@ -161,6 +161,14 @@ done
# Allows to shave off ~9.1M from the binary seed
rm usr/lib/libc.a
+# tcc-0.9.27_git20250106-r0 doesn't supports alloca(3) on riscv yet
+# removing the musl-provided header allows to compile git
+# (still breaks GNU make though)
+if [ "${ALPINE_ARCH}" = riscv64 ]; then
+ rm usr/include/alloca.h
+ sed -i '/alloca\.h/d' usr/include/stdlib.h
+fi
+
cd "${out_base}/src"
ln -s oksh "${out_base}/bin/sh"