diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile index cf4607ce4..d7a37975e 100644 --- a/dpdkbuild/Makefile +++ b/dpdkbuild/Makefile @@ -24,8 +24,11 @@ DPDK_OPTS += --buildtype=debug endif ifeq ($(CONFIG_LTO),y) +# dpdk complains about compiler not supporting fat LTO objects when clang is in use so don't enable it in such a instance +ifneq ($(CC_TYPE),clang) DPDK_OPTS += -Db_lto=true endif +endif # the drivers we use DPDK_DRIVERS = bus bus/pci bus/vdev mempool/ring