mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
kadnode: smaller binary
Decreases size of package by 3% Signed-off-by: Moritz Warning <moritzwarning@web.de>
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user