In cross-compiling mode CC can be aarch64-*-linux-gnu-gcc
instead of just gcc

Suggested-by: Ferruh Yigit <ferruh.yigit at intel.com>
Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
---
v1..v2
Use CONFIG_RTE_TOOLCHAIN_GCC instead of regular expression in filter
---
 drivers/net/qede/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/qede/Makefile b/drivers/net/qede/Makefile
index c9b3b1c..d4b1e28 100644
--- a/drivers/net/qede/Makefile
+++ b/drivers/net/qede/Makefile
@@ -47,7 +47,7 @@ endif
 endif
 endif

-ifneq (,$(filter gcc gcc48,$(CC)))
+ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
 CFLAGS_BASE_DRIVER += -Wno-unused-but-set-variable
 CFLAGS_BASE_DRIVER += -Wno-missing-declarations
 CFLAGS_BASE_DRIVER += -Wno-maybe-uninitialized
-- 
2.5.5

Reply via email to