diff options
Diffstat (limited to 'recipes-core/icedtea/icedtea7-native.inc')
-rw-r--r-- | recipes-core/icedtea/icedtea7-native.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc index 331b7a4..0f317bb 100644 --- a/recipes-core/icedtea/icedtea7-native.inc +++ b/recipes-core/icedtea/icedtea7-native.inc | |||
@@ -30,8 +30,7 @@ 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" | 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]}" | 32 | HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}" |
33 | # if compiler version 9 detected, add more CFLAGS | 33 | CFLAGS:append = " ${@oe.utils.less_or_equal('HOST_COMPILER_MAJOR', '8', '', ' -Wno-error=format-overflow', d)}" |
34 | CFLAGS:append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-error=format-overflow', '', d)}" | ||
35 | 34 | ||
36 | # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources | 35 | # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources |
37 | CFLAGS:append = " -fcommon" | 36 | CFLAGS:append = " -fcommon" |