Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
63436ce2
Commit
63436ce2
authored
May 21, 2014
by
Damien George
Browse files
unix, Mac support: Generate order.def via Makefile.
parent
0fd01683
Changes
2
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
63436ce2
...
...
@@ -19,7 +19,7 @@ CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
UNAME_S
:=
$(
shell
uname
-s
)
ifeq
($(UNAME_S),Darwin)
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-map,
$@
.map,-order_file,order.def
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-map,
$@
.map,-order_file,
$(BUILD)
/
order.def
else
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-Map
=
$@
.map,--cref
endif
...
...
@@ -71,9 +71,16 @@ SRC_C = \
modos.c
\
$(SRC_MOD)
# Must be the last file
ifeq
($(UNAME_S),Darwin)
# Must be the last file in list of sources
SRC_C
+=
seg_helpers.c
# making seg_helpers.c rely on order.def will force order.def to be created
seg_helpers.c
:
$(BUILD)/order.def
# create order.def in build directory
$(BUILD)/order.def
:
$(Q)
echo
"seg_helpers.o: ___bss_start"
>
$@
endif
OBJ
=
$(PY_O)
$(
addprefix
$(BUILD)
/,
$(SRC_C:.c=.o)
)
...
...
unix/order.def
deleted
100644 → 0
View file @
0fd01683
seg_helpers.o: ___bss_start
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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