From 43a94514afd6b5ef335720153c00c475b778aec1 Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Wed, 22 Jul 2020 09:13:01 +0300 Subject: [PATCH] make/dpdk: Correct compiler type detection This commit fixes compiler type detection to suppress warnings specific for gcc 10 Change-Id: I66264451792ff84a53001badc7c2f8a452d732af Signed-off-by: Alexey Marchuk (cherry picked from commit 1415e38411fea0499fc90d6d1af7be75aff0e668) Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5525 Tested-by: Tomasz Zawadzki Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris Reviewed-by: --- dpdkbuild/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile index ee4f9ae3b0..0cd4886df1 100644 --- a/dpdkbuild/Makefile +++ b/dpdkbuild/Makefile @@ -140,7 +140,7 @@ endif # Allow users to specify EXTRA_DPDK_CFLAGS if they want to build DPDK using unsupported compiler versions DPDK_CFLAGS += $(EXTRA_DPDK_CFLAGS) -ifeq ($(CC),gcc) +ifeq ($(CC_TYPE),gcc) GCC_MAJOR = $(shell echo __GNUC__ | $(CC) -E -x c - | tail -n 1) ifeq ($(shell test $(GCC_MAJOR) -ge 10 && echo 1), 1) #1. gcc 10 complains on operations with zero size arrays in rte_cryptodev.c, so