fix(compilation): use cross for statically linking against musl #36
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "maximdeclercq/rusty-bever:feat/cross"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
@ -0,0 +1,7 @@
fn main() {
This script was required to tell cargo what to link.
@ -0,0 +11,4 @@
ENV MAKE="make -j$CORES" \
CC="musl-gcc -fPIE -pie -static" \
PREFIX=/usr/local/x86_64-linux-musl \
RUSTFLAGS="-C relocation-model=static"
This flag is important for not using PIC.