ppp: compile with LTO enabled
Reduces .ipk size on MIPS from 98.5k to 98k Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
		| @@ -189,8 +189,8 @@ $(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_CFLAGS += -ffunction-sections -fdata-sections -flto | ||||||
| TARGET_LDFLAGS += -Wl,--gc-sections | TARGET_LDFLAGS += -Wl,--gc-sections -flto -fuse-linker-plugin | ||||||
|  |  | ||||||
| MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \ | MAKE_FLAGS += COPTS="$(TARGET_CFLAGS)" \ | ||||||
| 		PRECOMPILED_FILTER=1 \ | 		PRECOMPILED_FILTER=1 \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Felix Fietkau
					Felix Fietkau