summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorZijie Pan <zijie.pan@6wind.com>2013-02-01 12:42:18 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 16:07:50 +0200
commitcd1bdd137662633a85f0b1c42599567b0a0c23e0 (patch)
tree6d6be41996e921ae967bb704f2e3aa14302b74e6 /mk
parent9cdd07c320f09d9000e356363c230309a93d55de (diff)
downloaddpdk-cd1bdd137662633a85f0b1c42599567b0a0c23e0.zip
dpdk-cd1bdd137662633a85f0b1c42599567b0a0c23e0.tar.gz
dpdk-cd1bdd137662633a85f0b1c42599567b0a0c23e0.tar.xz
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 <krzysztof.witek@6wind.com> Signed-off-by: Zijie Pan <zijie.pan@6wind.com> Acked-by: Ivan Boule <ivan.boule@6wind.com> Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/toolchain/gcc/rte.toolchain-compat.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk b/mk/toolchain/gcc/rte.toolchain-compat.mk
index 6566cf3..f81caa9 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