From cd1bdd137662633a85f0b1c42599567b0a0c23e0 Mon Sep 17 00:00:00 2001 From: Zijie Pan Date: Fri, 1 Feb 2013 12:42:18 +0100 Subject: [PATCH] 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 --- mk/toolchain/gcc/rte.toolchain-compat.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1