mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +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:
parent
63fc13179b
commit
8ed79c5b27
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue