summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorSamuel Gauthier <samuel.gauthier@6wind.com>2012-09-20 10:07:44 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 16:07:50 +0200
commit19824d7a69b95a22ad4edd240473aea1ce38c04d (patch)
tree5255af28dc58ae608505eb248ef0e53601217d1a /mk
parent594f3c1cea092afc62cd5d4c867968cff595542c (diff)
downloaddpdk-19824d7a69b95a22ad4edd240473aea1ce38c04d.zip
dpdk-19824d7a69b95a22ad4edd240473aea1ce38c04d.tar.gz
dpdk-19824d7a69b95a22ad4edd240473aea1ce38c04d.tar.xz
mk: use $CC to detect toolchain version
Using gcc is wrong, we should use the cross gcc to detect the version of gcc. Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'mk')
-rw-r--r--mk/toolchain/gcc/rte.toolchain-compat.mk4
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 88191e5..6566cf3 100644
--- a/mk/toolchain/gcc/rte.toolchain-compat.mk
+++ b/mk/toolchain/gcc/rte.toolchain-compat.mk
@@ -39,7 +39,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)
@@ -48,7 +48,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