[oe] [meta-java][PATCH v2] icedtea: disable error format-overflow for gcc 7
Richard Leitner
richard.leitner at skidata.com
Mon Aug 13 15:46:28 UTC 2018
From: Andreas Obergschwandtner <andreas.obergschwandtner at skidata.com>
As no patch has been found in debian and hotspot repo for this issue we
just disable this warning which was introduced with GCC 7.
Also known as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner at skidata.com>
Signed-off-by: Richard Leitner <richard.leitner at skidata.com>
---
Changes v2:
+ adapted by Richard Leitner to use the openjdk-build-helper class from
André Draszik instead of our own in the java class.
(Therefore it now depends on the "prepare for openjdk-8 build infra re-use"
series from André)
---
recipes-core/icedtea/icedtea7-native.inc | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 30fb24a..796acb6 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -24,6 +24,12 @@ CFLAGS_append = " -fno-tree-dse"
CXXFLAGS_append = " -fno-tree-dse"
CXX_append = " -std=gnu++98"
+# Disable format-overflow error with host g++ >= 7.3.
+# This bug is known as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
+FLAGS_GCC7 = " -Wno-error=format-overflow"
+BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
+BUILD_CXXFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"
+
inherit native java autotools pkgconfig
inherit openjdk-build-helper
--
2.11.0
More information about the Openembedded-devel
mailing list