summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2020-04-29 11:58:07 +0200
committerRichard Leitner <richard.leitner@skidata.com>2020-08-17 13:03:19 +0200
commitf343448f23c4c4d0baa5a037be1e01fce2fb5a63 (patch)
tree4ca7e68383ed53d3873a293c3910e0dcec9ca73d
parent139b0cb1f2d454a07d46ac5f11d3d3d175518227 (diff)
downloadmeta-java-f343448f23c4c4d0baa5a037be1e01fce2fb5a63.tar.gz
openjdk-8: require GCC >= v6
As nobody should use older versions of GCC anymore this patch drops all version dependent workarounds and requiers host gcc >=6 for building openjdk-8. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Tested-by: Jacob Kroon <jacob.kroon@gmail.com>
-rw-r--r--README8
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc22
2 files changed, 12 insertions, 18 deletions
diff --git a/README b/README
index 031709e..2c57c5c 100644
--- a/README
+++ b/README
@@ -122,7 +122,7 @@ BBLAYERS ?= " \
122 path_to_source/sources/meta-java \ 122 path_to_source/sources/meta-java \
123 " 123 "
124 124
125Please note that libstdc++ static is needed on your host to compile icedtea7-native 125Build host dependencies
126(install libstdc++-static on a Fedora). 126-----------------------
127 127 - gcc >= v6
128For debian-based distributions you need the libstdc++6-$compilerversion-dev package. 128 - libstdc++ static
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 5228338..c78bb2a 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -170,20 +170,14 @@ EXTRA_OECONF_append = "\
170" 170"
171 171
172# Since v6, GCC sets the default C++ standard to C++14 and introduces 172# Since v6, GCC sets the default C++ standard to C++14 and introduces
173# dead store elimination by default. OpenJDK 8 is not ready for either 173# dead store elimination by default.
174# of these changes. 174# Since v10, GCC defaults to -fno-common.
175FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" 175# OpenJDK 8 is not ready for either of these changes.
176FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" 176GLOBAL_FLAGS = "-fno-lifetime-dse -fno-delete-null-pointer-checks -fcommon"
177FLAGS_GCC8 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
178FLAGS_GCC9 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
179FLAGS_GCC10 = "-fno-lifetime-dse -fno-delete-null-pointer-checks"
180
181# GCC 10 defaults to -fno-common, but OpenJDK 8 is not ready for this.
182FLAGS_GCC10_append = " -fcommon"
183 177
184# flags for -native, and for bits that need a host-tool during -cross 178# flags for -native, and for bits that need a host-tool during -cross
185BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}" 179BUILD_CFLAGS_append = " ${GLOBAL_FLAGS}"
186BUILD_CXXFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}" 180BUILD_CXXFLAGS_append = " ${GLOBAL_FLAGS}"
187# flags for -cross 181# flags for -cross
188TARGET_CFLAGS_append = " ${@openjdk_build_helper_get_target_cflags(d)}" 182TARGET_CFLAGS_append = " ${GLOBAL_FLAGS}"
189TARGET_CXXFLAGS_append = " ${@openjdk_build_helper_get_target_cflags(d)}" 183TARGET_CXXFLAGS_append = " ${GLOBAL_FLAGS}"