The curl-related deprecation errors affect all builds not just native,
so set CFLAGS instead of BUILD_CFLAGS.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
BUILD_CFLAGS += "-Wno-error=stringop-overflow"
# compatibility with curl 7.87; can be removed when elfutils upstream fixes the deprecation fails
-BUILD_CFLAGS += "-Wno-error=deprecated-declarations"
+CFLAGS:append = " -Wno-error=deprecated-declarations"
DEPENDS_BZIP2 = "bzip2-replacement-native"
DEPENDS_BZIP2:class-target = "bzip2"