mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
scripts/ndk-make.sh: unset RUSTFLAGS
Common way to configure `mold` is to set
RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/usr/bin/mold"
This breaks cross-compilation, as wrong linker is used.
This commit is contained in:
@@ -56,6 +56,8 @@ if test -z "$NDK_HOST_TAG"; then
|
||||
NDK_HOST_TAG="$KERNEL-$ARCH"
|
||||
fi
|
||||
|
||||
unset RUSTFLAGS
|
||||
|
||||
TOOLCHAIN="$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/$NDK_HOST_TAG"
|
||||
export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER="$TOOLCHAIN/bin/armv7a-linux-androideabi16-clang"
|
||||
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="$TOOLCHAIN/bin/aarch64-linux-android21-clang"
|
||||
|
||||
Reference in New Issue
Block a user