[oe] [meta-java][PATCH 2/2] icedtea: disable error format-overflow for gcc 7

Andreas Obergschwandtner andreas.obergschwandtner at skidata.com
Thu Aug 2 14:45:23 UTC 2018


no patch has been found in debian and hotspot repo for
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824. The warning was
added with gcc 7.

Signed-off-by: Andreas Obergschwandtner <andreas.obergschwandtner at skidata.com>
---
 recipes-core/icedtea/icedtea7-native.inc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 93463be..453fae3 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -24,6 +24,14 @@ CFLAGS_append = " -fno-tree-dse"
 CXXFLAGS_append = " -fno-tree-dse"
 CXX_append = " -std=gnu++98"
 
+# Disable format-overflow error with host g++ >= 7.3.
+# Bug is reported https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881824
+# but no patch was found for Debian.
+FLAGS_GCC7 = " -Wno-error=format-overflow"
+
+CFLAGS_append = " ${@java_version_specific_cflags(d)}"
+CXXFLAGS_append = " ${@java_version_specific_cflags(d)}"
+
 inherit native java autotools pkgconfig
 
 JAVA_HOME[unexport] = "1"
-- 
2.17.1




More information about the Openembedded-devel mailing list