'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 fi
# Set cross-compiler and sysroot # Set cross-compiler and sysroot
export CC="x86_64-linux-musl-gcc --sysroot=$SYSROOT" local CC="$MUSL_PATH/bin/${ARCH_SHORT_PREFIX}-gcc"
export AR="x86_64-linux-musl-ar" [ -f "$CC" ] || CC="$MUSL_PATH/bin/gcc"
export RANLIB="x86_64-linux-musl-ranlib" 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 for cross-compiling
./configure \ CC="$CC" AR="$AR" RANLIB="$RANLIB" ./configure \
--host=x86_64-linux-musl \ --host="$ARCH_SHORT_PREFIX" \
--prefix="$SYSROOT/usr" \ --prefix="$SYSROOT/usr" \
--enable-static \ --enable-static \
--disable-shared \ --disable-shared \