Signed-off-by: Robert Berger <robert.ber...@reliableembeddedsystems.com> --- recipes-core/icedtea/icedtea7-native.inc | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc index 8d0dc71..b9ad2bd 100644 --- a/recipes-core/icedtea/icedtea7-native.inc +++ b/recipes-core/icedtea/icedtea7-native.inc @@ -28,6 +28,11 @@ CXX_append = " -std=gnu++98" # WORKAROUND: ignore errors from new compilers CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type" +# oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9" +HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}" +# if compiler version 9 detected, add more CFLAGS +CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}" + inherit native java autotools pkgconfig inherit openjdk-build-helper inherit python3native -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#84257): https://lists.openembedded.org/g/openembedded-devel/message/84257 Mute This Topic: https://lists.openembedded.org/mt/74069376/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-