]> git.lizzy.rs Git - rust.git/commitdiff
travis: Compile a more compatible libc.a for musl
authorAlex Crichton <alex@alexcrichton.com>
Tue, 21 Feb 2017 22:18:50 +0000 (14:18 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 21 Feb 2017 22:22:42 +0000 (14:22 -0800)
The mitigations for #34978 involve passing `-Wa,-mrelax-relocations=no` to all C
code we compile, and we just forgot to pass it when compiling musl itself.

Closes #39979

src/ci/docker/linux-tested-targets/build-musl.sh

index 260dc11509f4787b38758c13976b89945bc44ee4..ce62c392241d8306ee5c4f543453d2def07a1f07 100644 (file)
 
 set -ex
 
-export CFLAGS="-fPIC"
+# We need to mitigate rust-lang/rust#34978 when compiling musl itself as well
+export CFLAGS="-fPIC -Wa,-mrelax-relocations=no"
+export CXXFLAGS="-Wa,-mrelax-relocations=no"
+
 MUSL=musl-1.1.14
 curl https://www.musl-libc.org/releases/$MUSL.tar.gz | tar xzf -
 cd $MUSL