rust bootstrap: fix missing -lunwind

This commit is contained in:
Ella Stanforth 2022-04-28 20:17:01 +00:00
parent 47c2233e4e
commit f5a5840714

View file

@ -2,18 +2,15 @@ pkgname=rust
pkgver=beta pkgver=beta
fetch() { fetch() {
stat rust.tar.gz > /dev/null 2> /dev/null \ curl "https://static.rust-lang.org/dist/rust-$pkgver-$ARCH-unknown-linux-musl.tar.gz" -o rust.tar.gz
|| curl "https://static.rust-lang.org/dist/rust-$pkgver-$ARCH-unknown-linux-musl.tar.gz" -o rust.tar.gz tar -xf rust.tar.gz
stat rust-$pkgver-$ARCH-unknown-linux-musl > /dev/null 2> /dev/null \
|| tar -xf rust.tar.gz
} }
build() { build() {
stat libgcc_s.so > /dev/null 2> /dev/null \ [ -f libgcc_s.so ] \
|| clang -shared -o libgcc_s.so \ || clang -shared -o libgcc_s.so \
-Wl,--allow-multiple-definition -Wl,--whole-archive \ -Wl,--allow-multiple-definition -Wl,--whole-archive \
$(clang -print-libgcc-file-name) $(clang -print-libgcc-file-name) -lunwind
} }
package() { package() {