kadnode: smaller binary

Decreases size of package by 3%

Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
Moritz Warning
2018-05-02 20:05:25 +02:00
parent e72341e52a
commit 32242f6f6e
2 changed files with 71 additions and 0 deletions
+4
View File
@@ -76,6 +76,10 @@ endif
MAKE_FLAGS += FEATURES="$(FEATURES)"
# Make binary smaller
TARGET_CFLAGS += -ffunction-sections -fdata-sections
TARGET_LDFLAGS += -Wl,--gc-sections
define Package/kadnode/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/kadnode $(1)/usr/bin/