fix(compilation): use cross for statically linking against musl #36

Open
maximdeclercq wants to merge 1 commits from maximdeclercq/rusty-bever:feat/cross into develop
There is no content yet.
maximdeclercq added 1 commit 2021-09-08 15:54:34 +02:00
maximdeclercq reviewed 2021-09-08 15:55:32 +02:00
@ -0,0 +1,7 @@
fn main() {

This script was required to tell cargo what to link.

This script was required to tell cargo what to link.
maximdeclercq reviewed 2021-09-08 15:55:54 +02:00
@ -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.

This flag is important for not using PIC.
Jef Roosens added this to the 1.0 - First Release milestone 2021-09-22 21:09:39 +02:00
This repo is archived. You cannot comment on pull requests.
There is no content yet.