Set RUSTFLAGS env to make dylib work
The musl-target doesn't automatically disable static linking of musl when building a dylib, and then complains it can't build a dylib. As a workaround, disable static linking via RUSTFLAGS, to see how far the build gets. The proper fix is to have rustc figure that out automagically.
This commit is contained in:
parent
880b041f3c
commit
3729e48bf2
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ ENV CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no
|
|||
|
||||
ENV HOSTS=x86_64-unknown-linux-musl
|
||||
|
||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||
|
||||
ENV SCRIPT \
|
||||
python2.7 ../x.py test --host $HOSTS --target $HOSTS && \
|
||||
python2.7 ../x.py dist --host $HOSTS --target $HOSTS
|
||||
|
|
Loading…
Reference in a new issue