From 2014dc8bf10cc90ad2bdcbfd5b7574f5c690e484 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 17 Nov 2017 01:37:31 +0100 Subject: [PATCH] python: Fix build for x86_64 with NDK r16 --- packages/python/build.sh | 1 + packages/python2/build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/python/build.sh b/packages/python/build.sh index c7fec4436..f736afbf4 100644 --- a/packages/python/build.sh +++ b/packages/python/build.sh @@ -39,6 +39,7 @@ termux_step_pre_configure() { # zlib extension module is not built without this): CPPFLAGS+=" -I$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include" LDFLAGS+=" -L$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib" + if [ $TERMUX_ARCH = x86_64 ]; then LDFLAGS+=64; fi } termux_step_post_make_install () { diff --git a/packages/python2/build.sh b/packages/python2/build.sh index c76c269f6..a68abd37c 100644 --- a/packages/python2/build.sh +++ b/packages/python2/build.sh @@ -57,6 +57,7 @@ termux_step_pre_configure() { # zlib extension module is not built without this): CPPFLAGS+=" -I$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/include" LDFLAGS+=" -L$TERMUX_STANDALONE_TOOLCHAIN/sysroot/usr/lib" + if [ $TERMUX_ARCH = x86_64 ]; then LDFLAGS+=64; fi } termux_step_post_make_install () {