All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][PATCH v2] icedtea7-native: host gcc-9, extra CFLAGS needed
@ 2020-05-08 18:08 Robert Berger
  2020-05-09  9:13 ` [oe] " ml+oe
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Berger @ 2020-05-08 18:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: richard.leitner, Robert Berger

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

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: [oe] [meta-java][PATCH v2] icedtea7-native: host gcc-9, extra CFLAGS needed
  2020-05-08 18:08 [meta-java][PATCH v2] icedtea7-native: host gcc-9, extra CFLAGS needed Robert Berger
@ 2020-05-09  9:13 ` ml+oe
  0 siblings, 0 replies; 2+ messages in thread
From: ml+oe @ 2020-05-09  9:13 UTC (permalink / raw)
  To: Robert Berger; +Cc: openembedded-devel, richard.leitner, Robert Berger

Hi,
thanks for the patch!

I've rebased it on current master and pushed it to master-next for
further testing!

regards;rl

On Fri, May 08, 2020 at 09:08:32PM +0300, Robert Berger wrote:
> From: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
> 
> 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	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-09  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-08 18:08 [meta-java][PATCH v2] icedtea7-native: host gcc-9, extra CFLAGS needed Robert Berger
2020-05-09  9:13 ` [oe] " ml+oe

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.