Skip to content

Commit a04055e

Browse files
committed
Build statically linked binaries for MIPS targets
1 parent e5ea0df commit a04055e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,11 @@ ENV CARGO_BUILD_TARGET=$TARGET
111111

112112
ENV CFLAGS_armv7_unknown_linux_musleabihf='-mfpu=vfpv3-d16'
113113

114+
# Build statically linked binaries for MIPS targets
115+
ENV CARGO_TARGET_MIPS_UNKNOWN_LINUX_MUSL_RUSTFLAGS='-C target-features=+crt-static'
116+
ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUSTFLAGS='-C target-features=+crt-static'
117+
ENV CARGO_TARGET_MIPS64_UNKNOWN_LINUX_MUSLABI64_RUSTFLAGS='-C target-features=+crt-static'
118+
ENV CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_RUSTFLAGS='-C target-features=+crt-static'
119+
114120
# Expect our source code to live in /home/rust/src
115121
WORKDIR /home/rust/src

0 commit comments

Comments
 (0)