Skip to content

Commit

Permalink
Rollup merge of rust-lang#59468 - mati865:musl_toolchain, r=pnkfelix
Browse files Browse the repository at this point in the history
musl: build toolchain libs with -fPIC

Fixes rust-lang#59411
  • Loading branch information
Centril authored Mar 29, 2019
2 parents 0f4c87c + c764890 commit c2d6c08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ci/docker/scripts/musl-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c2d6c08

Please sign in to comment.