From 28689049f8bc9f74f2b8780e36e1a03cb1e8f641 Mon Sep 17 00:00:00 2001 From: m4b Date: Sun, 31 Jul 2016 21:48:04 -0700 Subject: [PATCH] turn off newer RELX relocation optimizations otherwise breaks the link step on systems with an older linker (i.e., travis CI, some ubuntu's, etc.). ref rust-lang/rust/#34978 We may only want to add this flag on nightly? Not sure how to do that... *NB* requires a newer assembler (don't know exact minimal working version), but ``` as -version GNU assembler (GNU Binutils) 2.26.0.20160501 ``` works. --- slaves/linux/build-musl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slaves/linux/build-musl.sh b/slaves/linux/build-musl.sh index 5c92cda..276a47b 100644 --- a/slaves/linux/build-musl.sh +++ b/slaves/linux/build-musl.sh @@ -2,7 +2,7 @@ set -ex -export CFLAGS=-fPIC +export CFLAGS=-fPIC -Wa,-mrelax-relocations=no MUSL=musl-1.1.14 # Support building MUSL curl http://www.musl-libc.org/releases/$MUSL.tar.gz | tar xzf -