From 694b1f02637beef859529291d7273df4ea6ec6da Mon Sep 17 00:00:00 2001 From: rami3l Date: Sun, 11 Feb 2024 21:05:04 +0800 Subject: [PATCH] fix(build): pass `-latomic` to `ld` for android targets --- ci/docker/android/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/docker/android/Dockerfile b/ci/docker/android/Dockerfile index f3bfab6c5d8..8dcf8ca788b 100644 --- a/ci/docker/android/Dockerfile +++ b/ci/docker/android/Dockerfile @@ -25,4 +25,5 @@ ENV PATH=$PATH:/android/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin \ CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=armv7a-linux-androideabi21-clang \ CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android21-clang \ CARGO_TARGET_I686_LINUX_ANDROID_LINKER=i686-linux-android21-clang \ - CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=x86_64-linux-android21-clang + CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER=x86_64-linux-android21-clang \ + RUSTFLAGS="-C link-arg=-latomic"