Rollup merge of #59468 - mati865:musl_toolchain, r=pnkfelix

musl: build toolchain libs with -fPIC

Fixes https://github.com/rust-lang/rust/issues/59411
This commit is contained in:
Mazdak Farrokhzad
2019-03-29 02:40:52 +01:00
committed by GitHub

View File

@@ -29,6 +29,10 @@ TARGET=$ARCH-linux-musl
OUTPUT=/usr/local
shift
# Ancient binutils versions don't understand debug symbols produced by more recent tools.
# Apparently applying `-fPIC` everywhere allows them to link successfully.
export CFLAGS="-fPIC $CFLAGS"
git clone https://github.com/richfelker/musl-cross-make -b v0.9.7
cd musl-cross-make