chiark
/
gitweb
/
~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b90c2d3
)
Add rpath-link parameter for aarch64 build
author
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 2 Dec 2015 01:32:45 +0000
(20:32 -0500)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Wed, 2 Dec 2015 01:32:45 +0000
(20:32 -0500)
build-package.sh
patch
|
blob
|
blame
|
history
diff --git
a/build-package.sh
b/build-package.sh
index c067946633fde99ffc5e43136cd4a527cf6174c1..eb65dc5de40271953f832e6a5cdf12d6ab473589 100755
(executable)
--- 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