From 1415e38411fea0499fc90d6d1af7be75aff0e668 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 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3472 Reviewed-by: Changpeng Liu Reviewed-by: Reviewed-by: Michal Berger Reviewed-by: Vitaliy Mysak Reviewed-by: Tomasz Zawadzki Reviewed-by: Ben Walker Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- dpdkbuild/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpdkbuild/Makefile b/dpdkbuild/Makefile index 2318eef69..e17675852 100644 --- a/dpdkbuild/Makefile +++ b/dpdkbuild/Makefile @@ -139,7 +139,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