2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-17 04:00:14 -07:00
repo/extra/rust/build

29 lines
761 B
Plaintext
Raw Normal View History

2019-07-21 03:11:03 -06:00
#!/bin/sh -e
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 \
--disable-full-bootstrap \
2019-07-21 03:11:03 -06:00
--disable-codegen-tests \
--enable-vendor \
--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 \
--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