This commit is contained in:
parent
f77c3350d5
commit
0e40776948
@ -189,11 +189,20 @@ function install_unwind_musl() {
|
||||
return
|
||||
fi
|
||||
|
||||
# download and install unwind
|
||||
git clone https://github.com/libunwind/libunwind.git
|
||||
cd libunwind
|
||||
autoreconf -i
|
||||
./configure --enable-static --disable-minidebuginfo --disable-zlibdebuginfo
|
||||
# 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"
|
||||
|
||||
# Configure for cross-compiling
|
||||
./configure \
|
||||
--host=x86_64-linux-musl \
|
||||
--prefix="$SYSROOT/usr" \
|
||||
--enable-static \
|
||||
--disable-shared \
|
||||
--disable-minidebuginfo \
|
||||
--disable-zlibdebuginfo
|
||||
|
||||
make -j
|
||||
${SUDOCMD:-} make install
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user