python: Fix build for x86_64 with NDK r16
[termux-packages] / packages / python2 / build.sh
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 () {