On 11 Jan 2023, at 11:24, Jacob Kroon via lists.openembedded.org 
<[email protected]> wrote:
> 
> On 1/6/23 17:16, Ross Burton wrote:
>> The curl-related deprecation errors affect all builds not just native,
>> so set CFLAGS instead of BUILD_CFLAGS.
>> Signed-off-by: Ross Burton <[email protected]>
>> ---
>>  meta/recipes-devtools/elfutils/elfutils_0.188.bb | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> diff --git a/meta/recipes-devtools/elfutils/elfutils_0.188.bb 
>> b/meta/recipes-devtools/elfutils/elfutils_0.188.bb
>> index c94e36071cd..084908a38c0 100644
>> --- a/meta/recipes-devtools/elfutils/elfutils_0.188.bb
>> +++ b/meta/recipes-devtools/elfutils/elfutils_0.188.bb
>> @@ -34,7 +34,7 @@ EXTRA_OECONF = "--program-prefix=eu-"
>>    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"
>>  
> 
> Why use ":append" and not "+=" ? I thought the general idea is that "+=" is 
> preferred, since it is easier to remove the snippet in a .bbappend, so core 
> should avoid :append when possible ?

Because of how the defaults and native.bbclass interact.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175734): 
https://lists.openembedded.org/g/openembedded-core/message/175734
Mute This Topic: https://lists.openembedded.org/mt/96096249/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to