Closed neuhalje closed 6 years ago
Also linking to libc (which contains __errno
) results in a too big image, even for a 4096KB(1024KB+1024KB) configuration: .output/eagle/debug/image/eagle.app.v6.out section '.text' will not fit in region 'iram1_0_seg'
diff --git a/Makefile b/Makefile
index 1e70fd0..558f382 100644
--- a/Makefile
+++ b/Makefile
@@ -81,6 +81,8 @@ LINKFLAGS_eagle.app.v6 = \
-llwip \
-lssl \
-ljson \
+ -lm \
+ -lc \
-lsmartconfig \
-lpwm \
-L./libesphttpd \
Solution
This makes it compile, even with 512KB( 256KB+ 256KB):
diff --git a/Makefile b/Makefile
index 1e70fd0..ef2e43e 100644
--- a/Makefile
+++ b/Makefile
@@ -87,11 +87,9 @@ LINKFLAGS_eagle.app.v6 = \
-lesphttpd \
-lwebpages-espfs \
$(DEP_LIBS_eagle.app.v6) \
- -Wl,--end-group
-
-
-# -lcirom \
+ -Wl,--end-group \
-lmirom \
+ -lcirom \
DEPENDS_eagle.app.v6 = \
$(LD_FILE) \
worked for me
Solution see below (last comment)
Compilation under MacOSX fails (paths shortened, output formatted):
Including
-lm
fails with.../newlib-2.0.0/.../w_pow.c:198: more undefined references to __errno follow