musl: build toolchain libs with -fPIC
This commit is contained in:
parent
267fb90b55
commit
c764890d7c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue