musl: build toolchain libs with -fPIC

This commit is contained in:
Mateusz Mikuła 2019-03-27 18:37:21 +01:00 committed by Mateusz Mikuła
parent 267fb90b55
commit c764890d7c
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ TARGET=$ARCH-linux-musl
OUTPUT=/usr/local OUTPUT=/usr/local
shift 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 git clone https://github.com/richfelker/musl-cross-make -b v0.9.7
cd musl-cross-make cd musl-cross-make