diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile index 6424a6009..cf4607ce4 100644 --- a/dpdkbuild/Makefile +++ b/dpdkbuild/Makefile @@ -23,6 +23,10 @@ ifeq ($(CONFIG_DEBUG),y) DPDK_OPTS += --buildtype=debug endif +ifeq ($(CONFIG_LTO),y) +DPDK_OPTS += -Db_lto=true +endif + # the drivers we use DPDK_DRIVERS = bus bus/pci bus/vdev mempool/ring