• 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-aarch64-linux-gnu qemu-user
6
7COPY install-musl.sh /
8RUN sh /install-musl.sh aarch64
9
10# FIXME: shouldn't need the `-lgcc` here, shouldn't that be in libstd?
11ENV PATH=$PATH:/musl-aarch64/bin:/rust/bin \
12    CC_aarch64_unknown_linux_musl=musl-gcc \
13    RUSTFLAGS='-Clink-args=-lgcc -L /musl-aarch64/lib' \
14    CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc \
15    CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUNNER="qemu-aarch64 -L /musl-aarch64"
16