git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mk: use $CC to detect toolchain version
[dpdk.git]
/
mk
/
toolchain
/
gcc
/
rte.toolchain-compat.mk
diff --git
a/mk/toolchain/gcc/rte.toolchain-compat.mk
b/mk/toolchain/gcc/rte.toolchain-compat.mk
index
88191e5
..
6566cf3
100644
(file)
--- a/
mk/toolchain/gcc/rte.toolchain-compat.mk
+++ b/
mk/toolchain/gcc/rte.toolchain-compat.mk
@@
-39,7
+39,7
@@
#find out GCC version
#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)
# 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
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
# GCC graceful degradation
# GCC 4.2.x - added support for generic target