aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@gmail.com>2020-04-30 15:15:56 +0200
committerRichard Leitner <richard.leitner@skidata.com>2020-05-01 11:22:15 +0200
commit840a581290d08ae48a577bda9e84363771ba6167 (patch)
tree711156499175ea3a1e7550908ba986ec412c44bc /recipes-core
parentbb51be580365078f8e572353f2430bbbf1790ce9 (diff)
downloadmeta-java-840a581290d08ae48a577bda9e84363771ba6167.tar.gz
meta-java-840a581290d08ae48a577bda9e84363771ba6167.tar.bz2
meta-java-840a581290d08ae48a577bda9e84363771ba6167.zip
openjdk-8: Fix building with GCC 10
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index d8b30b8..5228338 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -176,6 +176,10 @@ FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
FLAGS_GCC8 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
FLAGS_GCC9 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
+FLAGS_GCC10 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
+
+# GCC 10 defaults to -fno-common, but OpenJDK 8 is not ready for this.
+FLAGS_GCC10_append = " -fcommon"
# flags for -native, and for bits that need a host-tool during -cross
BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}"