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
3890ec48
Commit
3890ec48
authored
Feb 14, 2014
by
Gordon McGregor
Browse files
OS X compatible -map syntax for LDFLAGS
parent
76f8cedb
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
3890ec48
...
...
@@ -12,7 +12,13 @@ include ../py/py.mk
# compiler settings
CFLAGS
=
-I
.
-I
$(PY_SRC)
-Wall
-Werror
-ansi
-std
=
gnu99
-DUNIX
$(CFLAGS_MOD)
$(COPT)
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-Map
=
$@
.map,--cref
UNAME_S
:=
$(
shell
uname
-s
)
ifeq
($(UNAME_S),Darwin)
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-map,
$@
.map
else
LDFLAGS
=
$(LDFLAGS_MOD)
-lm
-Wl
,-Map
=
$@
.map,--cref
endif
ifeq
($(MICROPY_MOD_TIME),1)
CFLAGS_MOD
+=
-DMICROPY_MOD_TIME
=
1
...
...
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