All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH] icedtea7-native: host gcc-9, extra CFLAGS needed
@ 2020-05-08  9:46 Robert Berger
       [not found] ` <20200508161006.GA8325@brokenbit>
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Berger @ 2020-05-08  9:46 UTC (permalink / raw)
  To: openembedded-devel; +Cc: richard.leitner, Robert Berger

Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
---
 recipes-core/icedtea/icedtea7-native.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 8d0dc71..b9ad2bd 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -28,6 +28,11 @@ CXX_append = " -std=gnu++98"
 # WORKAROUND: ignore errors from new compilers
 CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type"
 
+# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9"
+HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}"
+# if compiler version 9 detected, add more CFLAGS
+CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}"
+
 inherit native java autotools pkgconfig
 inherit openjdk-build-helper
 inherit python3native
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-java] icedtea7-native: host gcc-9, extra CFLAGS needed
       [not found] ` <20200508161006.GA8325@brokenbit>
@ 2020-05-08 18:10   ` Robert Berger
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Berger @ 2020-05-08 18:10 UTC (permalink / raw)
  To: Richard Leitner; +Cc: openembedded-devel, richard.leitner, Robert Berger

Hi,

My comments are in-line.

On 08/05/2020 19:10, Richard Leitner wrote:
> Hi Robert,
> thanks for the patch!
> 
> One question regarding your E-Mail Addresses: Are you sure
> <oecore.mailinglist@gmail.com> should  be your author address, or should
> it be <robert.berger@ReliableEmbeddedSystems.com> ?

It should be

From: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>

I just sent out v2 - hopefully it's OK now.

please check

> 
> regards;rl

Regards,

Robert

> 
> On Fri, May 08, 2020 at 12:46:38PM +0300, Robert Berger wrote:
>> Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
>> ---
>>   recipes-core/icedtea/icedtea7-native.inc | 5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
>> index 8d0dc71..b9ad2bd 100644
>> --- a/recipes-core/icedtea/icedtea7-native.inc
>> +++ b/recipes-core/icedtea/icedtea7-native.inc
>> @@ -28,6 +28,11 @@ CXX_append = " -std=gnu++98"
>>   # WORKAROUND: ignore errors from new compilers
>>   CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type"
>>   
>> +# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9"
>> +HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}"
>> +# if compiler version 9 detected, add more CFLAGS
>> +CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}"
>> +
>>   inherit native java autotools pkgconfig
>>   inherit openjdk-build-helper
>>   inherit python3native


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-08 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08  9:46 [meta-java][PATCH] icedtea7-native: host gcc-9, extra CFLAGS needed Robert Berger
     [not found] ` <20200508161006.GA8325@brokenbit>
2020-05-08 18:10   ` [meta-java] " Robert Berger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.