Try gold linker by default on aarch64
This commit is contained in:
parent
320bee67d1
commit
0d1dde5fef
@ -207,7 +207,7 @@ termux_step_setup_variables() {
|
||||
TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/toolchain-${TERMUX_ARCH}-ndk${TERMUX_NDK_VERSION}-api${TERMUX_API_LEVEL}"
|
||||
# Bump the below version if a change is made in toolchain setup to ensure
|
||||
# that everyone gets an updated toolchain:
|
||||
TERMUX_STANDALONE_TOOLCHAIN+="-v7"
|
||||
TERMUX_STANDALONE_TOOLCHAIN+="-v8"
|
||||
|
||||
export TERMUX_TAR="tar"
|
||||
export TERMUX_TOUCH="touch"
|
||||
@ -471,8 +471,7 @@ termux_step_setup_toolchain() {
|
||||
# From $NDK/docs/CPU-ARCH-ABIS.html:
|
||||
CFLAGS+=" -march=i686 -msse3 -mstackrealign -mfpmath=sse"
|
||||
elif [ "$TERMUX_ARCH" = "aarch64" ]; then
|
||||
LDFLAGS+=" -Wl,-rpath-link,$TERMUX_PREFIX/lib"
|
||||
LDFLAGS+=" -Wl,-rpath-link,$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib"
|
||||
:
|
||||
elif [ "$TERMUX_ARCH" = "x86_64" ]; then
|
||||
:
|
||||
else
|
||||
@ -534,6 +533,10 @@ termux_step_setup_toolchain() {
|
||||
# Fix to allow e.g. <bits/c++config.h> to be included:
|
||||
cp $_TERMUX_TOOLCHAIN_TMPDIR/include/c++/4.9.x/arm-linux-androideabi/armv7-a/bits/* \
|
||||
$_TERMUX_TOOLCHAIN_TMPDIR/include/c++/4.9.x/bits
|
||||
elif [ "$TERMUX_ARCH" = "aarch64" ]; then
|
||||
# Use gold by default to work around https://github.com/android-ndk/ndk/issues/148
|
||||
cp $_TERMUX_TOOLCHAIN_TMPDIR/bin/aarch64-linux-android-ld.gold \
|
||||
$_TERMUX_TOOLCHAIN_TMPDIR/bin/aarch64-linux-android-ld
|
||||
fi
|
||||
|
||||
cd $_TERMUX_TOOLCHAIN_TMPDIR/sysroot
|
||||
|
Loading…
Reference in New Issue
Block a user