Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
7e02935a
Commit
7e02935a
authored
Dec 17, 2015
by
Johny Mattsson
Browse files
Deal with ld's overly eager discarding of globals.
parent
4e8ef87d
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Makefile
View file @
7e02935a
...
...
@@ -86,8 +86,10 @@ COMPONENTS_eagle.app.v6 = \
crypto/libcrypto.a
\
dhtlib/libdhtlib.a
\
tsl2561/tsl2561lib.a
\
modules/libmodules.a
modules/libmodules.a
\
# Special consideration for modules to support NODEMCU_MODULE handling
MODULES_LIB
=
$(
filter
%modules.a,
$(DEP_LIBS_eagle.app.v6)
)
LINKFLAGS_eagle.app.v6
=
\
-Wl
,--gc-sections
\
...
...
@@ -98,6 +100,9 @@ LINKFLAGS_eagle.app.v6 = \
-Wl
,--no-check-sections
\
-Wl
,--wrap
=
_xtos_set_exception_handler
\
-Wl
,-static
\
-Wl
,--whole-archive
\
$(MODULES_LIB)
\
-Wl
,--no-whole-archive
\
-Wl
,--start-group
\
-lc
\
-lgcc
\
...
...
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