From 73f9ed9b54e512eb9d7dcafc8ac570f82874fca5 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 1 Dec 2015 20:32:45 -0500 Subject: [PATCH] Add rpath-link parameter for aarch64 build --- build-package.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-package.sh b/build-package.sh index c06794663..eb65dc5de 100755 --- a/build-package.sh +++ b/build-package.sh @@ -99,6 +99,9 @@ if [ "$TERMUX_ARCH" = "arm" ]; then elif [ $TERMUX_ARCH = "i686" ]; then # 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" fi if [ -n "$TERMUX_DEBUG" ]; then