From: "Robert Berger" <oecore.mailinglist@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: richard.leitner@skidata.com,
Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
Subject: [meta-java][PATCH v2] icedtea7-native: host gcc-9, extra CFLAGS needed
Date: Fri, 8 May 2020 21:08:32 +0300 [thread overview]
Message-ID: <20200508180832.8903-1-robert.berger@ReliableEmbeddedSystems.com> (raw)
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
next reply other threads:[~2020-05-08 18:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 18:08 Robert Berger [this message]
2020-05-09 9:13 ` [oe] [meta-java][PATCH v2] icedtea7-native: host gcc-9, extra CFLAGS needed ml+oe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200508180832.8903-1-robert.berger@ReliableEmbeddedSystems.com \
--to=oecore.mailinglist@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=richard.leitner@skidata.com \
--cc=robert.berger@ReliableEmbeddedSystems.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.