Skip to content

Commit

Permalink
musl: build toolchain libs with -fPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Mar 27, 2019
1 parent 267fb90 commit c764890
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 c764890

Please sign in to comment.