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