mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
unix: Refactor order file munging fo MacOSX.
This commit is contained in:
parent
eecf3e90c6
commit
7e56e55252
@ -7,6 +7,9 @@ PROG = micropython
|
|||||||
# qstr definitions (must come before including py.mk)
|
# qstr definitions (must come before including py.mk)
|
||||||
QSTR_DEFS = qstrdefsport.h
|
QSTR_DEFS = qstrdefsport.h
|
||||||
|
|
||||||
|
# OS name, for simple autoconfig
|
||||||
|
UNAME_S := $(shell uname -s)
|
||||||
|
|
||||||
# include py core make definitions
|
# include py core make definitions
|
||||||
include ../py/py.mk
|
include ../py/py.mk
|
||||||
|
|
||||||
@ -26,12 +29,7 @@ else
|
|||||||
COPT = -Os #-DNDEBUG
|
COPT = -Os #-DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
UNAME_S := $(shell uname -s)
|
LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref
|
||||||
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
|
|
||||||
|
|
||||||
ifeq ($(MICROPY_FORCE_32BIT),1)
|
ifeq ($(MICROPY_FORCE_32BIT),1)
|
||||||
CFLAGS += -m32
|
CFLAGS += -m32
|
||||||
@ -76,6 +74,9 @@ SRC_C = \
|
|||||||
$(SRC_MOD)
|
$(SRC_MOD)
|
||||||
|
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
|
|
||||||
|
LDFLAGS+ = -Wl,-order_file,$(BUILD)/order.def
|
||||||
|
|
||||||
# Must be the last file in list of sources
|
# Must be the last file in list of sources
|
||||||
SRC_C += seg_helpers.c
|
SRC_C += seg_helpers.c
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user