From ba97a03d7d08bfd2a26ab2e7a83ef93dbf102cfe Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 17 Apr 2016 12:51:57 +0000 Subject: [PATCH] curl: add flags to allow gc-sections to strip out unused code Signed-off-by: Dirk Feytons Signed-off-by: Hauke Mehrtens SVN-Revision: 49184 --- package/network/utils/curl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/network/utils/curl/Makefile b/package/network/utils/curl/Makefile index 319c0b710d..af38ed4aed 100644 --- a/package/network/utils/curl/Makefile +++ b/package/network/utils/curl/Makefile @@ -99,8 +99,9 @@ define Package/libcurl/config 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 \ -- 2.30.2