<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 April 2016 at 18:22, Hauke Mehrtens <span dir="ltr"><<a href="mailto:hauke@hauke-m.de" target="_blank">hauke@hauke-m.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 04/07/2016 10:21 AM, Dirk Feytons wrote:<br>
> Signed-off-by: Dirk Feytons <<a href="mailto:dirk.feytons@gmail.com">dirk.feytons@gmail.com</a>><br>
> ---<br>
> package/network/utils/curl/Makefile | 3 ++-<br>
> 1 file changed, 2 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/package/network/utils/curl/Makefile b/package/network/utils/curl/Makefile<br>
> index 319c0b7..af38ed4 100644<br>
> --- a/package/network/utils/curl/Makefile<br>
> +++ b/package/network/utils/curl/Makefile<br>
> @@ -99,8 +99,9 @@ define Package/libcurl/config<br>
> source "$(SOURCE)/Config.in"<br>
> endef<br>
><br>
> -TARGET_CFLAGS += $(FPIC)<br>
> +TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections<br>
> TARGET_CPPFLAGS += $(if $(CONFIG_LIBCURL_NTLM),,-DCURL_DISABLE_NTLM)<br>
> +TARGET_LDFLAGS += -Wl,--gc-sections<br>
><br>
> CONFIGURE_ARGS += \<br>
> --disable-debug \<br>
><br>
</div></div>Out of curiosity, have you checked how much memory this saves?<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>I did :)<br></div><div>A basic build of libcurl with only HTTP/HTTPS support (via OpenSSL) is 207828 bytes without --gc-sections and 195348 with. Not bad I would say. For the curl application itself the numbers are 87728 and 86864 bytes, so there the difference is less.<br><br></div><div>Dirk F.<br></div></div><br></div></div>