We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sort -V
1 parent 02b0003 commit 9646803Copy full SHA for 9646803
1 file changed
core/Makefile
@@ -18,12 +18,13 @@ $(shell mkdir -p $(DEPDIR)/hooks >/dev/null)
18
# 'clang' or 'g++'
19
CXXCOMPILER := $(shell expr $(word 1, $(shell $(CXX) --version)) : '\(clang\|g++\)')
20
21
-# e.g., 4.9.3 -> 40903. For clang it is always 40201
22
-CXXVERSION := $(shell $(CXX) -dumpversion | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/')
+CXXVERSION := $(shell $(CXX) -dumpversion)
23
24
-ifeq "$(shell expr $(CXXCOMPILER) = g++ \& $(CXXVERSION) \< 40800)" "1"
+ifeq "$(CXXCOMPILER)" "g++"
+ifneq "$(shell printf '$(CXXVERSION)\n4.7' | sort -V | head -n1)" "4.7"
25
$(error g++ 4.8 or higher is required)
26
endif
27
+endif
28
29
RTE_SDK ?= $(abspath ../deps/dpdk-17.05)
30
RTE_TARGET ?= $(shell uname -m)-native-linuxapp-gcc
0 commit comments