1 parent 3b108e7 commit 571d5a3Copy full SHA for 571d5a3
2 files changed
unix/Makefile
@@ -20,6 +20,16 @@ else
20
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref
21
endif
22
23
+ifeq ($(MICROPY_FORCE_32BIT),1)
24
+CFLAGS += -m32
25
+LDFLAGS += -m32
26
+ifeq ($(MICROPY_MOD_FFI),1)
27
+ifeq ($(UNAME_S),Linux)
28
+CFLAGS_MOD += -I/usr/include/i686-linux-gnu
29
+endif
30
31
32
+
33
ifeq ($(MICROPY_USE_READLINE),1)
34
CFLAGS_MOD += -DMICROPY_USE_READLINE=1
35
LDFLAGS_MOD += -lreadline
unix/mpconfigport.mk
@@ -1,5 +1,8 @@
1
# Enable/disable modules and 3rd-party libs to be included in interpreter
2
3
+# Build 32-bit binaries on a 64-bit host
4
+MICROPY_FORCE_32BIT = 0
5
6
# Linking with GNU readline causes binary to be licensed under GPL
7
MICROPY_USE_READLINE = 1
8
0 commit comments