ppp: use --gc-sections to save a tiny bit of space
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
4297f4f901
commit
e175a4d4f1
1 changed files with 3 additions and 0 deletions
|
@ -172,6 +172,9 @@ $(call Build/Configure/Default,, \
|
||||||
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
|
$(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
||||||
|
|
||||||
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
|
MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \
|
||||||
PRECOMPILED_FILTER=1 \
|
PRECOMPILED_FILTER=1 \
|
||||||
STAGING_DIR="$(STAGING_DIR)"
|
STAGING_DIR="$(STAGING_DIR)"
|
||||||
|
|
Loading…
Reference in a new issue