From 219b299eb85d5626e9c2c4da6ca92e6debe8239b Mon Sep 17 00:00:00 2001
From: Ren Zhijie <zhijie.ren@shingroup.cn>
Date: Mon, 4 Mar 2024 18:03:47 +0800
Subject: [PATCH] Fix the build error ppc64le-gnu-gcc does not support -march
 option

Signed-off-by: Ren Zhijie <zhijie.ren@shingroup.cn>
---
 mk/spdk.common.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mk/spdk.common.mk b/mk/spdk.common.mk
index 1326f83..14777ae 100644
--- a/mk/spdk.common.mk
+++ b/mk/spdk.common.mk
@@ -75,7 +75,7 @@ TARGET_MACHINE := $(firstword $(TARGET_TRIPLET_WORDS))
 
 COMMON_CFLAGS = -g $(C_OPT) -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wmissing-declarations -fno-strict-aliasing -I$(SPDK_ROOT_DIR)/include
 
-ifneq ($(filter powerpc%,$(TARGET_MACHINE)),)
+ifneq ($(filter powerpc% ppc%,$(TARGET_MACHINE)),)
 COMMON_CFLAGS += -mcpu=$(TARGET_ARCHITECTURE)
 else ifeq ($(TARGET_MACHINE),aarch64)
 COMMON_CFLAGS += -march=$(TARGET_ARCHITECTURE)
-- 
2.33.0

