Author: hauke
Date: 2016-04-17 14:51:57 +0200 (Sun, 17 Apr 2016)
New Revision: 49184

Modified:
   trunk/package/network/utils/curl/Makefile
Log:
curl: add flags to allow gc-sections to strip out unused code

Signed-off-by: Dirk Feytons <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>


Modified: trunk/package/network/utils/curl/Makefile
===================================================================
--- trunk/package/network/utils/curl/Makefile   2016-04-17 12:51:41 UTC (rev 
49183)
+++ trunk/package/network/utils/curl/Makefile   2016-04-17 12:51:57 UTC (rev 
49184)
@@ -99,8 +99,9 @@
   source "$(SOURCE)/Config.in"
 endef
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -ffunction-sections -fdata-sections
 TARGET_CPPFLAGS += $(if $(CONFIG_LIBCURL_NTLM),,-DCURL_DISABLE_NTLM)
+TARGET_LDFLAGS += -Wl,--gc-sections
 
 CONFIGURE_ARGS += \
        --disable-debug \
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to