Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7e56e552
Commit
7e56e552
authored
Jun 20, 2014
by
Paul Sokolovsky
Browse files
unix: Refactor order file munging fo MacOSX.
parent
eecf3e90
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
7e56e552
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment