• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1FROM ubuntu:22.04
2
3RUN apt-get update && apt-get install -y --no-install-recommends \
4  gcc make libc6-dev git curl ca-certificates \
5  gcc-mips64el-linux-gnuabi64 qemu-user
6
7COPY install-musl.sh /
8RUN sh /install-musl.sh mips64el
9
10# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
11ENV PATH=$PATH:/musl-mips64el/bin:/rust/bin \
12    CC_mips64el_unknown_linux_muslabi64=musl-gcc \
13    RUSTFLAGS='-Clink-args=-lgcc -L /musl-mips64el/lib' \
14    CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_LINKER=musl-gcc \
15    CARGO_TARGET_MIPS64EL_UNKNOWN_LINUX_MUSLABI64_RUNNER="qemu-mips64el -L /musl-mips64el"
16