From: Samuel Gauthier <samuel.gauth...@6wind.com>

Using gcc is wrong, we should use the cross gcc to detect the
version of gcc.

Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
Signed-off-by: Samuel Gauthier <samuel.gauthier at 6wind.com>
---
 mk/toolchain/gcc/rte.toolchain-compat.mk |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mk/toolchain/gcc/rte.toolchain-compat.mk 
b/mk/toolchain/gcc/rte.toolchain-compat.mk
index 4e65122..2e05ecb 100644
--- a/mk/toolchain/gcc/rte.toolchain-compat.mk
+++ b/mk/toolchain/gcc/rte.toolchain-compat.mk
@@ -40,7 +40,7 @@

 #find out GCC version

-GCC_MAJOR_VERSION = $(shell gcc -dumpversion | cut -f1 -d.)
+GCC_MAJOR_VERSION = $(shell $(CC) -dumpversion | cut -f1 -d.)

 # if GCC is not 4.x
 ifneq ($(GCC_MAJOR_VERSION),4)
@@ -49,7 +49,7 @@ $(warning You are not using GCC 4.x. This is neither 
supported, nor tested.)


 else
-       GCC_MINOR_VERSION = $(shell gcc -dumpversion | cut -f2 -d.)
+       GCC_MINOR_VERSION = $(shell $(CC) -dumpversion | cut -f2 -d.)

 # GCC graceful degradation
 # GCC 4.2.x - added support for generic target
-- 
1.7.2.5


Reply via email to