Skip to content

Commit 4dd57ef

Browse files
committed
Disable relax relocations again
1 parent cbc1ce0 commit 4dd57ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ci/docker/dist-x86_64-musl/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ WORKDIR /build/
2222
COPY scripts/musl-toolchain.sh /build/
2323
# We need to mitigate rust-lang/rust#34978 when compiling musl itself as well
2424
# TODO: Check what this issue is and if we can ignore it
25-
26-
RUN bash musl-toolchain.sh x86_64-linux-musl && rm -rf build
25+
RUN CFLAGS="-Wa,-mrelax-relocations=no" \
26+
CXXFLAGS="-Wa,-mrelax-relocations=no" \
27+
bash musl-toolchain.sh x86_64-linux-musl && rm -rf build
2728

2829
COPY scripts/sccache.sh /scripts/
2930
RUN sh /scripts/sccache.sh
@@ -38,7 +39,7 @@ ENV RUST_CONFIGURE_ARGS \
3839
# way to produce "super compatible" binaries.
3940
#
4041
# See: https://github.com/rust-lang/rust/issues/34978
41-
#ENV CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no
42+
ENV CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no
4243

4344
ENV HOSTS=x86_64-unknown-linux-musl \
4445
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \

0 commit comments

Comments
 (0)