Skip to content

Commit c764890

Browse files
committed
musl: build toolchain libs with -fPIC
1 parent 267fb90 commit c764890

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ci/docker/scripts/musl-toolchain.sh

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ TARGET=$ARCH-linux-musl
2929
OUTPUT=/usr/local
3030
shift
3131

32+
# Ancient binutils versions don't understand debug symbols produced by more recent tools.
33+
# Apparently applying `-fPIC` everywhere allows them to link successfully.
34+
export CFLAGS="-fPIC $CFLAGS"
35+
3236
git clone https://github.com/richfelker/musl-cross-make -b v0.9.7
3337
cd musl-cross-make
3438

0 commit comments

Comments
 (0)