Rollup merge of #59468 - mati865:musl_toolchain, r=pnkfelix
musl: build toolchain libs with -fPIC Fixes https://github.com/rust-lang/rust/issues/59411
This commit is contained in:
commit
c2d6c08ebb
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue