aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-11-08 14:01:58 +0100
committerMitch Bradley <wmb@firmworks.com>2019-11-08 07:30:53 -1000
commit4b34fa70ff88bc562189693340c6480f13c25d0d (patch)
tree141dd62fe19b55b4d2ccd9a0e42e78d30873ef72
parent0cef5f4b6a69595fab0e3cfb9d657775e343f706 (diff)
downloadcforth-4b34fa70ff88bc562189693340c6480f13c25d0d.tar.gz
embed: build host forth 32-bit
On x86_64 it builds, but doesn't seem to work: $ make -C build/arm-xo-1.75 ... cc -o meta meta.o compiler.o io.o dictfile.o mallocl.o ./meta ../../src/cforth/interp.fth kernel.dic (cd ../../src/cforth/embed; ../../../build/arm-xo-1.75/forth ../../../build/arm-xo-1.75/kernel.dic load.fth; mv forth.dic ../../../build/arm-xo-1.75) Tried to execute a null token
-rw-r--r--build/arm-xo-1.75/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/arm-xo-1.75/Makefile b/build/arm-xo-1.75/Makefile
index 29f1914..b0d9698 100644
--- a/build/arm-xo-1.75/Makefile
+++ b/build/arm-xo-1.75/Makefile
@@ -2,4 +2,10 @@
TOPDIR=../..
+CONFIG += -DBITS32 -DT16
+
+ifneq "$(shell getconf LONG_BIT)" "32"
+CFLAGS += -m32
+endif
+
include $(TOPDIR)/src/app/arm-xo-1.75/targets.mk