summaryrefslogtreecommitdiff
path: root/unix/Makefile
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-08-29 21:13:07 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-08-29 21:18:10 +0300
commit18c22faf4d643098731fc2e448b212dfbd5ea612 (patch)
tree14d1f43f5ef4000d61cafcd544f59e4aa2d7e7c9 /unix/Makefile
parent5cb524673eff51be4b3abdf04548ac854dd32ef1 (diff)
py: Treat -m32 flag as part of CC, LD, etc.
Indeed, this flag efectively selects architecture target, and must consistently apply to all compiles and links, including 3rd-party libraries, unlike CFLAGS, which have MicroPython-specific setting.
Diffstat (limited to 'unix/Makefile')
-rw-r--r--unix/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 5db26a9ac..a06117083 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -47,8 +47,6 @@ LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
ifeq ($(MICROPY_FORCE_32BIT),1)
# Note: you may need to install i386 versions of dependency packages,
# starting with linux-libc-dev:i386
-CFLAGS += -m32
-LDFLAGS += -m32
ifeq ($(MICROPY_PY_FFI),1)
ifeq ($(UNAME_S),Linux)
CFLAGS_MOD += -I/usr/include/i686-linux-gnu