From 413cc899940ca2d3ced9eed02e591dfdc88af208 Mon Sep 17 00:00:00 2001 From: Jens Reidel Date: Fri, 18 Sep 2020 17:35:25 +0200 Subject: [PATCH] Link against libgcc to fix https://github.com/rust-lang/rust/issues/46651 --- ci/docker/aarch64-unknown-linux-musl/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/docker/aarch64-unknown-linux-musl/Dockerfile b/ci/docker/aarch64-unknown-linux-musl/Dockerfile index 2ef8ff4547a..1c8ca897ec9 100644 --- a/ci/docker/aarch64-unknown-linux-musl/Dockerfile +++ b/ci/docker/aarch64-unknown-linux-musl/Dockerfile @@ -1,4 +1,5 @@ FROM rust-aarch64-unknown-linux-musl ENV CC_aarch64_unknown_linux_musl=aarch64-linux-musl-gcc \ - CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc + CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc \ + RUSTFLAGS="-C target-feature=+crt-static -C link-arg=-lgcc"