File tree 2 files changed +8
-11
lines changed
ci/docker/linux-tested-targets
2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -828,17 +828,6 @@ impl Build {
828
828
if target. contains ( "apple-darwin" ) {
829
829
base. push ( "-stdlib=libc++" . into ( ) ) ;
830
830
}
831
- // This is a hack, because newer binutils broke things on some vms/distros
832
- // (i.e., linking against unknown relocs disabled by the following flag)
833
- // See: https://github.com/rust-lang/rust/issues/34978
834
- match target {
835
- "i586-unknown-linux-gnu" |
836
- "i686-unknown-linux-musl" |
837
- "x86_64-unknown-linux-musl" => {
838
- base. push ( "-Wa,-mrelax-relocations=no" . into ( ) ) ;
839
- } ,
840
- _ => { } ,
841
- }
842
831
return base
843
832
}
844
833
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ ENV RUST_CONFIGURE_ARGS \
34
34
--musl-root-x86_64=/musl-x86_64 \
35
35
--musl-root-i686=/musl-i686
36
36
37
+ # Newer binutils broke things on some vms/distros (i.e., linking against
38
+ # unknown relocs disabled by the following flag), so we need to go out of our
39
+ # way to produce "super compatible" binaries.
40
+ #
41
+ # See: https://github.com/rust-lang/rust/issues/34978
42
+ ENV CFLAGS_i686_unknown_linux_gnu=-Wa,-mrelax-relocations=no \
43
+ CFLAGS_x86_64_unknown_linux_gnu=-Wa,-mrelax-relocations=no
44
+
37
45
ENV SCRIPT \
38
46
python2.7 ../x.py test \
39
47
--target x86_64-unknown-linux-musl \
You can’t perform that action at this time.
0 commit comments