diff --git a/meta-oniro-core/recipes-graphics/mesa/mesa_%.bbappend b/meta-oniro-core/recipes-graphics/mesa/mesa_%.bbappend
index dbb6ed7119490e02b5b70484ac8043d0e5ad559c..411487c815643d5f2e5b9c0704df440df3aa3394 100644
--- a/meta-oniro-core/recipes-graphics/mesa/mesa_%.bbappend
+++ b/meta-oniro-core/recipes-graphics/mesa/mesa_%.bbappend
@@ -24,4 +24,4 @@
 # use these flags globally in OPTIMIZE_FOR=security mode while keeping
 # mesa building.
 
-TARGET_CFLAGS_remove = "-Werror=array-bounds -Wformat-nonliteral -Werror=format-nonliteral"
+TARGET_CFLAGS:remove = "-Werror=array-bounds -Wformat-nonliteral -Werror=format-nonliteral"