X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/51f2fa2929e5697b83b3b61a257ea284159718b7..d0b16203c647d4e7b2979084694a200c9f500ff5:/package/ppp/Makefile diff --git a/package/ppp/Makefile b/package/ppp/Makefile index fba518215..992d96649 100644 --- a/package/ppp/Makefile +++ b/package/ppp/Makefile @@ -140,6 +140,9 @@ $(call Build/Configure/Default,, \ $(PKG_BUILD_DIR)/pppd/plugins/pppoatm/linux/ endef +TARGET_CFLAGS += -ffunction-sections -fdata-sections +MAKE_VARS += LDFLAGS="-Wl,--gc-sections" + MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \ PRECOMPILED_FILTER=1 \ STAGING_DIR="$(STAGING_DIR)"