diff --git a/meta-oniro-core/recipes-connectivity/socat/socat_%.bbappend b/meta-oniro-core/recipes-connectivity/socat/socat_%.bbappend
index 3ca0dbba0c13cd22591f00b3dbdc84b6b5d9bc0d..55effa486e34e114ee34b3199689e1d3b9f5b9c5 100644
--- a/meta-oniro-core/recipes-connectivity/socat/socat_%.bbappend
+++ b/meta-oniro-core/recipes-connectivity/socat/socat_%.bbappend
@@ -8,4 +8,4 @@
 # Removing -Werror=array-bounds here allows us to use -Werror=array-bounds
 # globally in OPTIMIZE_FOR=security mode.
 
-TARGET_CFLAGS_remove = "-Werror=array-bounds"
+TARGET_CFLAGS:remove = "-Werror=array-bounds"