diff options
author | Robert Berger <robert.berger@ReliableEmbeddedSystems.com> | 2020-05-08 21:08:32 +0300 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2020-05-09 11:11:27 +0200 |
commit | e31e8b593ffab2ce0f806666efbe1553e55f8229 (patch) | |
tree | a3113bb1860b562ca233505660c145c07fe05ec8 /recipes-core/icedtea/icedtea7-native.inc | |
parent | cf9604a4789801d9dfb0cb8ca134ff04b42ae161 (diff) | |
download | meta-java-e31e8b593ffab2ce0f806666efbe1553e55f8229.tar.gz |
icedtea7-native: host gcc-9, extra CFLAGS needed
Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'recipes-core/icedtea/icedtea7-native.inc')
-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 | ||