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