diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-20 19:25:54 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-20 20:21:11 +0300 |
commit | 7e56e552523d9fec09003243f2f3c0dd6afc9b4d (patch) | |
tree | 518fbdfe822c4db0c3a6f19bc3d2313e64a52948 /unix | |
parent | eecf3e90c638af886226ba652132d679db8a43fd (diff) | |
download | micropython-7e56e552523d9fec09003243f2f3c0dd6afc9b4d.tar.gz micropython-7e56e552523d9fec09003243f2f3c0dd6afc9b4d.zip |
unix: Refactor order file munging fo MacOSX.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/unix/Makefile b/unix/Makefile index 80495315fb..90a043a1b8 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -7,6 +7,9 @@ PROG = micropython # qstr definitions (must come before including py.mk) QSTR_DEFS = qstrdefsport.h +# OS name, for simple autoconfig +UNAME_S := $(shell uname -s) + # include py core make definitions include ../py/py.mk @@ -26,12 +29,7 @@ else COPT = -Os #-DNDEBUG endif -UNAME_S := $(shell uname -s) - ifeq ($(UNAME_S),Darwin) - LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-map,$@.map,-order_file,$(BUILD)/order.def - else - LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref - endif +LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref ifeq ($(MICROPY_FORCE_32BIT),1) CFLAGS += -m32 @@ -76,6 +74,9 @@ SRC_C = \ $(SRC_MOD) ifeq ($(UNAME_S),Darwin) + +LDFLAGS+ = -Wl,-order_file,$(BUILD)/order.def + # Must be the last file in list of sources SRC_C += seg_helpers.c |