-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS) -DHAVE_ISC_READER=1" \
- BINDIR="/usr/sbin" MANDIR="/usr/man" \
- AWK="awk" \
- all
-endef
+TARGET_CFLAGS += -ffunction-sections -fdata-sections
+
+MAKE_FLAGS := \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="-Wl,--gc-sections" \
+ PREFIX="/usr"