2019-07-21 03:11:03 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-07-29 20:02:13 -06:00
|
|
|
for patch in *.patch; do
|
|
|
|
patch -p1 < "$patch"
|
|
|
|
done
|
|
|
|
|
2019-07-21 03:11:03 -06:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--release-channel=stable \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-docs \
|
2019-07-29 20:02:13 -06:00
|
|
|
--disable-full-bootstrap \
|
2019-07-21 03:11:03 -06:00
|
|
|
--disable-codegen-tests \
|
|
|
|
--enable-vendor \
|
2019-07-29 21:58:57 -06:00
|
|
|
--enable-local-rust \
|
2019-07-21 03:11:03 -06:00
|
|
|
--llvm-root=/usr \
|
|
|
|
--build=x86_64-unknown-linux-musl \
|
|
|
|
--target=x86_64-unknown-linux-musl \
|
|
|
|
--set=target.x86_64-unknown-linux-musl.llvm-config=/usr/bin/llvm-config \
|
2019-07-29 20:02:13 -06:00
|
|
|
--set=target.x86_64-unknown-linux-musl.crt-static=false
|
|
|
|
|
|
|
|
# rust checksums files in vendor/, but we patch a few files.
|
|
|
|
for vendor in libc lzma-sys typenum backtrace-sys; do
|
|
|
|
sed -i 's/\("files":{\)[^}]*/\1/' vendor/$vendor/.cargo-checksum.json
|
|
|
|
done
|
2019-07-21 03:11:03 -06:00
|
|
|
|
|
|
|
make
|
|
|
|
DESTDIR="$1" ./x.py install -v
|