From: its-pointless Date: Sat, 18 Nov 2017 21:18:05 +0000 (+1100) Subject: fix building pforth for 32 bit archs (#1804) X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/cd9a3a9c05675179b3e0c3de916ec0e819e2ccd1 fix building pforth for 32 bit archs (#1804) --- diff --git a/packages/pforth/build.sh b/packages/pforth/build.sh index 1d652942..d139a7cc 100644 --- a/packages/pforth/build.sh +++ b/packages/pforth/build.sh @@ -5,12 +5,17 @@ TERMUX_PKG_VERSION=20170116 TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip TERMUX_PKG_SHA256=fffd7aec1f6601c48a9e2baa284c82d4b22a77f5860a49d83bd811ca4ea18a05 TERMUX_PKG_HOSTBUILD=yes +TERMUX_PKG_REVISION=1 termux_step_host_build () { + M32="" + if [ $TERMUX_ARCH_BITS = "32" ]; then + export M32="-m32" + fi cp -Rf $TERMUX_PKG_SRCDIR/* . cd build/unix - CC=gcc make pfdicdat.h - CC=gcc make all + CC="gcc $M32" make pfdicdat.h + CC="gcc $M32" make all } termux_step_pre_configure () {