Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
63436ce2
Commit
63436ce2
authored
11 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
unix, Mac support: Generate order.def via Makefile.
parent
0fd01683
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
unix/Makefile
+9
-2
9 additions, 2 deletions
unix/Makefile
unix/order.def
+0
-1
0 additions, 1 deletion
unix/order.def
with
9 additions
and
3 deletions
unix/Makefile
+
9
−
2
View file @
63436ce2
...
@@ -19,7 +19,7 @@ CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
...
@@ -19,7 +19,7 @@ CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
UNAME_S
:=
$(
shell
uname
-s
)
UNAME_S
:=
$(
shell
uname
-s
)
ifeq
($(UNAME_S),Darwin)
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
else
LDFLAGS
=
$(
LDFLAGS_MOD
)
-lm
-Wl
,-Map
=
$@
.map,--cref
LDFLAGS
=
$(
LDFLAGS_MOD
)
-lm
-Wl
,-Map
=
$@
.map,--cref
endif
endif
...
@@ -71,9 +71,16 @@ SRC_C = \
...
@@ -71,9 +71,16 @@ SRC_C = \
modos.c
\
modos.c
\
$(
SRC_MOD
)
$(
SRC_MOD
)
# Must be the last file
ifeq
($(UNAME_S),Darwin)
ifeq
($(UNAME_S),Darwin)
# Must be the last file in list of sources
SRC_C
+=
seg_helpers.c
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
endif
OBJ
=
$(
PY_O
)
$(
addprefix
$(
BUILD
)
/,
$(
SRC_C:.c
=
.o
))
OBJ
=
$(
PY_O
)
$(
addprefix
$(
BUILD
)
/,
$(
SRC_C:.c
=
.o
))
...
...
This diff is collapsed.
Click to expand it.
unix/order.def
deleted
100644 → 0
+
0
−
1
View file @
0fd01683
seg_helpers.o: ___bss_start
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment