diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-03-29 02:40:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-29 02:40:52 +0100 |
| commit | c2d6c08ebba2690ce2dc0305dd82a75b2b97289a (patch) | |
| tree | 1e1de4127e2d50b396f52ae4cb8394009f0ead36 | |
| parent | 0f4c87cffc73a95943b49c48ed5eedcef99c84c7 (diff) | |
| parent | c764890d7c508b401764c79bde9c0f3c430138e0 (diff) | |
| download | rust-c2d6c08ebba2690ce2dc0305dd82a75b2b97289a.tar.gz rust-c2d6c08ebba2690ce2dc0305dd82a75b2b97289a.zip | |
Rollup merge of #59468 - mati865:musl_toolchain, r=pnkfelix
musl: build toolchain libs with -fPIC Fixes https://github.com/rust-lang/rust/issues/59411
| -rw-r--r-- | src/ci/docker/scripts/musl-toolchain.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ci/docker/scripts/musl-toolchain.sh b/src/ci/docker/scripts/musl-toolchain.sh index 95b7c2869c9..3caf2852ede 100644 --- a/src/ci/docker/scripts/musl-toolchain.sh +++ b/src/ci/docker/scripts/musl-toolchain.sh @@ -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 |
