X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=mk%2Ftoolchain%2Ficc%2Frte.vars.mk;h=1729f3d8490fbd77d149bf2e46b5dee330f5eb0b;hb=bd09eb7b613ba62986f2d37e6889b8f532044782;hp=ff338d661d3784d2e45296d24bd7ee3be618bcee;hpb=2abaf2eba2a63535e5299ffedb0b5c9a7cdd6e50;p=dpdk.git diff --git a/mk/toolchain/icc/rte.vars.mk b/mk/toolchain/icc/rte.vars.mk index ff338d661d..1729f3d849 100644 --- a/mk/toolchain/icc/rte.vars.mk +++ b/mk/toolchain/icc/rte.vars.mk @@ -45,14 +45,18 @@ TOOLCHAIN_ASFLAGS = WERROR_FLAGS := -Wall -w2 -diag-disable 271 -diag-warning 1478 WERROR_FLAGS += -diag-disable 13368 -diag-disable 15527 WERROR_FLAGS += -diag-disable 188 -WERROR_FLAGS += -diag-disable 11074 -diag-disable 11076 - -ifeq ($(RTE_DEVEL_BUILD),y) -WERROR_FLAGS += -Werror-all -endif +WERROR_FLAGS += -diag-disable 11074 -diag-disable 11076 -Wdeprecated # process cpu flags include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.toolchain-compat.mk +ifeq ($(CONFIG_RTE_ENABLE_LTO),y) +# 'fat-lto' is used since pmdinfogen needs to have 'this_pmd_nameX' +# exported in symbol table and without this option only internal +# representation is present. +TOOLCHAIN_CFLAGS += -flto -ffat-lto-objects +TOOLCHAIN_LDFLAGS += -flto +endif + export CC AS AR LD OBJCOPY OBJDUMP STRIP READELF export TOOLCHAIN_CFLAGS TOOLCHAIN_LDFLAGS TOOLCHAIN_ASFLAGS