'Generic Commit'
Some checks failed
dropshell-build / build (push) Failing after 1m38s

This commit is contained in:
Your Name 2025-06-02 22:05:45 +12:00
parent 0e40776948
commit 98f84000c8

View File

@ -190,13 +190,20 @@ function install_unwind_musl() {
fi
# Set cross-compiler and sysroot
export CC="x86_64-linux-musl-gcc --sysroot=$SYSROOT"
export AR="x86_64-linux-musl-ar"
export RANLIB="x86_64-linux-musl-ranlib"
local CC="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-gcc"
[ -f "$CC" ] || CC="$MUSL_PATH/bin/gcc"
local AR="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-ar"
[ -f "$AR" ] || AR="$MUSL_PATH/bin/ar"
local RANLIB="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-ranlib"
[ -f "$RANLIB" ] || RANLIB="$MUSL_PATH/bin/ranlib"
git clone https://github.com/libunwind/libunwind.git
cd libunwind
autoreconf -i
# Configure for cross-compiling
./configure \
--host=x86_64-linux-musl \
CC="$CC" AR="$AR" RANLIB="$RANLIB" ./configure \
--host="$ARCH_SHORT_PREFIX" \
--prefix="$SYSROOT/usr" \
--enable-static \
--disable-shared \