netifd: compile with LTO enabled
[openwrt/openwrt.git] / package / network / config / netifd / Makefile
index c18496c..2eaf38d 100644 (file)
@@ -27,7 +27,10 @@ endef
 
 TARGET_CFLAGS += \
        -I$(STAGING_DIR)/usr/include/libnl-tiny \
-       -I$(STAGING_DIR)/usr/include
+       -I$(STAGING_DIR)/usr/include \
+       -flto
+
+TARGET_LDFLAGS += -flto -fuse-linker-plugin
 
 CMAKE_OPTIONS += \
        -DLIBNL_LIBS=-lnl-tiny \