diff options
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/icedtea/icedtea7-native.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc index b0b9419..a5daa7c 100644 --- a/recipes-core/icedtea/icedtea7-native.inc +++ b/recipes-core/icedtea/icedtea7-native.inc | |||
@@ -28,6 +28,11 @@ CXX_append = " -std=gnu++98" | |||
28 | # WORKAROUND: ignore errors from new compilers | 28 | # WORKAROUND: ignore errors from new compilers |
29 | CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type" | 29 | CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type" |
30 | 30 | ||
31 | # oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9" | ||
32 | HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}" | ||
33 | # if compiler version 9 detected, add more CFLAGS | ||
34 | CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}" | ||
35 | |||
31 | # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources | 36 | # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources |
32 | CFLAGS_append = " -fcommon" | 37 | CFLAGS_append = " -fcommon" |
33 | 38 | ||