Commit 7e02935a authored by Johny Mattsson's avatar Johny Mattsson
Browse files

Deal with ld's overly eager discarding of globals.

parent 4e8ef87d
......@@ -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 \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment