X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=batctl%2FMakefile;h=2adbf422d0bc6881f0356fe967f44c2aa6ba4553;hb=67ad3b9b9686855b01d5353da5d876b7b1274ef6;hp=0d2452d72810274e50c1560a04af05158e458a07;hpb=9febc56a445ddb4d67c0f1133a0c17b67721bcd1;p=feed%2Frouting.git diff --git a/batctl/Makefile b/batctl/Makefile index 0d2452d..2adbf42 100644 --- a/batctl/Makefile +++ b/batctl/Makefile @@ -16,6 +16,7 @@ PKG_LICENSE:=GPL-2.0-only ISC MIT PKG_LICENSE_FILES:=LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT LICENSES/deprecated/ISC PKG_BUILD_PARALLEL:=1 +PKG_BUILD_FLAGS:=gc-sections include $(INCLUDE_DIR)/package.mk @@ -70,13 +71,6 @@ $(Package/batctl/description) Subcommands for configuration, online and offline debugging are enabled. endef -# The linker can identify unused sections of a binary when each symbol is stored -# in a separate section. This mostly removes unused linker sections and reduces -# the size by ~3% on mipsel. - -TARGET_CFLAGS += -ffunction-sections -fdata-sections -TARGET_LDFLAGS += -Wl,--gc-sections - # Link-time optimization allows to move parts of the optimization from the single # source file to the global source view. This is done by emitting the GIMPLE # representation in each object file and analyzing it again during the link step.