From: Fredrik Fornwall Date: Fri, 17 Nov 2017 00:37:31 +0000 (+0100) Subject: python: Fix build for x86_64 with NDK r16 X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/e85edee6081ebaa0b708a8c105ddbca6dad03b69?hp=a4481c5ac985148652934005522e123e27c2f7ff python: Fix build for x86_64 with NDK r16 --- diff --git a/packages/python/build.sh b/packages/python/build.sh index c7fec443..f736afbf 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 c76c269f..a68abd37 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 () {