[source] openssl: add --gc-sections
LEDE Commits
lede-commits at lists.infradead.org
Sat Jul 23 03:15:25 PDT 2016
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=057b116e092aa7386f610dc6682cb400e4276314
commit 057b116e092aa7386f610dc6682cb400e4276314
Author: Dirk Feytons <dirk.feytons at gmail.com>
AuthorDate: Thu Jun 2 13:43:14 2016 +0200
openssl: add --gc-sections
Signed-off-by: Dirk Feytons <dirk.feytons at gmail.com>
---
package/libs/openssl/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index 8e439e1..3939765 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) \
More information about the lede-commits
mailing list