From: Dirk Feytons Date: Thu, 2 Jun 2016 11:43:14 +0000 (+0200) Subject: openssl: add --gc-sections X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=057b116e092aa7386f610dc6682cb400e4276314;p=openwrt%2Fstaging%2Fjow.git openssl: add --gc-sections Signed-off-by: Dirk Feytons --- diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile index 8e439e1c31..393976598b 100644 --- a/package/libs/openssl/Makefile +++ b/package/libs/openssl/Makefile @@ -184,7 +184,8 @@ define Build/Configure depend endef -TARGET_CFLAGS += $(FPIC) -I$(CURDIR)/include +TARGET_CFLAGS += $(FPIC) -I$(CURDIR)/include -ffunction-sections -fdata-sections +TARGET_LDFLAGS += -Wl,--gc-sections define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \