diff options
author | Richard Leitner <richard.leitner@skidata.com> | 2020-04-29 11:58:07 +0200 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2020-05-05 07:09:44 +0200 |
commit | 0207ab72c58662cf7ac60229a5e14879b73f461d (patch) | |
tree | ec596ebb83b164dec375a7fc65643e8c6ed6ffae /recipes-core/openjdk | |
parent | 840a581290d08ae48a577bda9e84363771ba6167 (diff) | |
download | meta-java-0207ab72c58662cf7ac60229a5e14879b73f461d.tar.gz |
openjdk-8: require GCC >= v6
As nobody should use older versions of GCC we drop the restrictions and
workarounds.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'recipes-core/openjdk')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-common.inc | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc index 5228338..084ead9 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 -fcommon. |
175 | FLAGS_GCC6 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" | 175 | # OpenJDK 8 is not ready for either of these changes. |
176 | FLAGS_GCC7 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" | 176 | GLOBAL_FLAGS = "-fno-lifetime-dse -fno-delete-null-pointer-checks -fcommon" |
177 | FLAGS_GCC8 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" | ||
178 | FLAGS_GCC9 = "-fno-lifetime-dse -fno-delete-null-pointer-checks" | ||
179 | FLAGS_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. | ||
182 | FLAGS_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 |
185 | BUILD_CFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}" | 179 | BUILD_CFLAGS_append = " ${GLOBAL_FLAGS}" |
186 | BUILD_CXXFLAGS_append = " ${@openjdk_build_helper_get_build_cflags(d)}" | 180 | BUILD_CXXFLAGS_append = " ${GLOBAL_FLAGS}" |
187 | # flags for -cross | 181 | # flags for -cross |
188 | TARGET_CFLAGS_append = " ${@openjdk_build_helper_get_target_cflags(d)}" | 182 | TARGET_CFLAGS_append = " ${GLOBAL_FLAGS}" |
189 | TARGET_CXXFLAGS_append = " ${@openjdk_build_helper_get_target_cflags(d)}" | 183 | TARGET_CXXFLAGS_append = " ${GLOBAL_FLAGS}" |