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/
22
22
COPY scripts/musl-toolchain.sh /build/
23
23
# We need to mitigate rust-lang/rust#34978 when compiling musl itself as well
24
24
# 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
27
28
28
29
COPY scripts/sccache.sh /scripts/
29
30
RUN sh /scripts/sccache.sh
@@ -38,7 +39,7 @@ ENV RUST_CONFIGURE_ARGS \
38
39
# way to produce "super compatible" binaries.
39
40
#
40
41
# 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
42
43
43
44
ENV HOSTS=x86_64-unknown-linux-musl \
44
45
CC_x86_64_unknown_linux_musl=x86_64-linux-musl-gcc \
You can’t perform that action at this time.
0 commit comments