summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Berger <robert.berger@ReliableEmbeddedSystems.com>2020-05-08 18:08:32 (GMT)
committerRichard Leitner <richard.leitner@skidata.com>2020-05-09 09:11:27 (GMT)
commite31e8b593ffab2ce0f806666efbe1553e55f8229 (patch)
treea3113bb1860b562ca233505660c145c07fe05ec8
parentcf9604a4789801d9dfb0cb8ca134ff04b42ae161 (diff)
downloadmeta-java-master-next.tar.gz
icedtea7-native: host gcc-9, extra CFLAGS neededmaster-next
Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r--recipes-core/icedtea/icedtea7-native.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index b0b9419..a5daa7c 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -28,6 +28,11 @@ CXX_append = " -std=gnu++98"
28# WORKAROUND: ignore errors from new compilers 28# WORKAROUND: ignore errors from new compilers
29CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type" 29CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type"
30 30
31# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9"
32HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}"
33# if compiler version 9 detected, add more CFLAGS
34CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}"
35
31# Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources 36# Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources
32CFLAGS_append = " -fcommon" 37CFLAGS_append = " -fcommon"
33 38