summaryrefslogtreecommitdiffstats
path: root/recipes-core/icedtea/icedtea7-native.inc
diff options
context:
space:
mode:
authorEvgeny Sagatov <sagatov@ya.ru>2024-02-02 16:01:24 +0300
committerTim Orling <TicoTimo@gmail.com>2024-02-03 15:54:28 -0800
commit8c0c9f13cb89008f080fded0ca435f388e97bd7b (patch)
treef3946862376b997cc8d4d073383f69daf4670aa8 /recipes-core/icedtea/icedtea7-native.inc
parent4256a9e5b0b6ff687f3656f9659285c2b37e8aa2 (diff)
downloadmeta-java-8c0c9f13cb89008f080fded0ca435f388e97bd7b.tar.gz
Add compatability with GCC 12.x
Fixes build for kas 4.2 and Yocto Project 4.3.2 Signed-off-by: Evgeny Sagatov <sagatov@ya.ru>
Diffstat (limited to 'recipes-core/icedtea/icedtea7-native.inc')
-rw-r--r--recipes-core/icedtea/icedtea7-native.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc
index 0f317bb..d6f8fd7 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -21,9 +21,8 @@ CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ' -DHEADLESS=t
21# Disable dead store elimination and set C++ standard to C++98. 21# Disable dead store elimination and set C++ standard to C++98.
22# There are dead stores in the JVM that would be pretty hard to 22# There are dead stores in the JVM that would be pretty hard to
23# remove, so disable the optimisation in the compiler. 23# remove, so disable the optimisation in the compiler.
24CFLAGS:append = " -fno-tree-dse" 24CFLAGS:append = " -std=gnu++98 -fno-tree-dse -fno-tree-vectorize"
25CXXFLAGS:append = " -fno-tree-dse" 25CXXFLAGS:append = " -std=gnu++98 -fno-tree-dse"
26CXX:append = " -std=gnu++98"
27 26
28# WORKAROUND: ignore errors from new compilers 27# WORKAROUND: ignore errors from new compilers
29CFLAGS:append = " -Wno-error=stringop-overflow -Wno-error=return-type" 28CFLAGS:append = " -Wno-error=stringop-overflow -Wno-error=return-type"