File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/ci/docker/dist-x86_64-musl Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ WORKDIR /build/
2222COPY 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
2829COPY scripts/sccache.sh /scripts/
2930RUN 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
4344ENV HOSTS=x86_64-unknown-linux-musl \
4445 CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
You can’t perform that action at this time.
0 commit comments