python: Fix build for x86_64 with NDK r16
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 17 Nov 2017 00:37:31 +0000 (01:37 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 17 Nov 2017 00:37:31 +0000 (01:37 +0100)
packages/python/build.sh
packages/python2/build.sh

index c7fec44..f736afb 100644 (file)
@@ -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 () {
index c76c269..a68abd3 100644 (file)
@@ -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 () {