From: Zijie Pan Date: Fri, 1 Feb 2013 11:42:18 +0000 (+0100) Subject: mk: allow corei7-avx flag with gcc 4.7 X-Git-Tag: spdx-start~11298 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=cd1bdd137662633a85f0b1c42599567b0a0c23e0;p=dpdk.git mk: allow corei7-avx flag with gcc 4.7 In rte.toolchain-compat.mk, ensure MACHINE_CFLAGS is initialized when using GCC 4.7. Update the GCC 4.6 test to also include GCC 4.7. Signed-off-by: Krzysztof Witek Signed-off-by: Zijie Pan Acked-by: Ivan Boule Acked-by: Adrien Mazarguil --- diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rte.toolchain-compat.mk index 6566cf3137..f81caa9b41 100644 --- a/mk/toolchain/gcc/rte.toolchain-compat.mk +++ b/mk/toolchain/gcc/rte.toolchain-compat.mk @@ -58,7 +58,7 @@ else # GCC 4.6.x - added support for corei7, corei7-avx # GCC 4.7.x - added support for fsgsbase, rdrnd, f16c, core-avx-i, core-avx2 - ifeq ($(shell test $(GCC_MINOR_VERSION) -lt 7 && echo 1), 1) + ifeq ($(shell test $(GCC_MINOR_VERSION) -le 7 && echo 1), 1) MACHINE_CFLAGS := $(patsubst -march=core-avx-i,-march=corei7-avx,$(MACHINE_CFLAGS)) MACHINE_CFLAGS := $(patsubst -march=core-avx2,-march=corei7-avx,$(MACHINE_CFLAGS)) endif