diff options
author | Richard Leitner <richard.leitner@skidata.com> | 2020-04-29 11:59:08 +0200 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2020-05-05 07:09:44 +0200 |
commit | 00fa8f5e330679d00275010c7fda976caae44a00 (patch) | |
tree | 5f081aaae9aba86ae5d750afe8c8ac30fbb76a23 /recipes-core/openjdk/openjdk-8-release-common.inc | |
parent | 0207ab72c58662cf7ac60229a5e14879b73f461d (diff) | |
download | meta-java-00fa8f5e330679d00275010c7fda976caae44a00.tar.gz |
openjdk-8: remove -Werrorg0hl1n/jdk8-fix
Add patches to remove Werror from the build process. Therefore we also
drop the "-Wno-*" exceptions.
Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-release-common.inc')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-release-common.inc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/recipes-core/openjdk/openjdk-8-release-common.inc b/recipes-core/openjdk/openjdk-8-release-common.inc index bd3092f..02210a1 100644 --- a/recipes-core/openjdk/openjdk-8-release-common.inc +++ b/recipes-core/openjdk/openjdk-8-release-common.inc | |||
@@ -9,6 +9,7 @@ PATCHES_URI = "\ | |||
9 | file://0008-autoconf-fix-shark-build-common.patch \ | 9 | file://0008-autoconf-fix-shark-build-common.patch \ |
10 | file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \ | 10 | file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \ |
11 | file://0010-autoconf-remove-shell-variables-from-autoheader.patch \ | 11 | file://0010-autoconf-remove-shell-variables-from-autoheader.patch \ |
12 | file://0013-autoconf-remove-Werror.patch \ | ||
12 | ${HOTSPOT_UB_PATCH} \ | 13 | ${HOTSPOT_UB_PATCH} \ |
13 | file://2001-jdk-comparison-between-pointer-and-integer.patch \ | 14 | file://2001-jdk-comparison-between-pointer-and-integer.patch \ |
14 | file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \ | 15 | file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \ |
@@ -30,6 +31,7 @@ HOTSPOT_UB_PATCH = "\ | |||
30 | file://1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch \ | 31 | file://1007-hotspot-Missing-return-statement-in-__sync_val_compa.patch \ |
31 | file://1008-hotspot-Turn-on-the-Wreturn-type-warning.patch \ | 32 | file://1008-hotspot-Turn-on-the-Wreturn-type-warning.patch \ |
32 | file://1009-hotspot-handle-format-error-for-GCC-7.patch \ | 33 | file://1009-hotspot-handle-format-error-for-GCC-7.patch \ |
34 | file://1013-hotspot-make-disable-Werror.patch \ | ||
33 | " | 35 | " |
34 | HOTSPOT_UB_PATCH_append_class-target = "\ | 36 | HOTSPOT_UB_PATCH_append_class-target = "\ |
35 | file://1010-hotspot-fix-adlc-flags.patch \ | 37 | file://1010-hotspot-fix-adlc-flags.patch \ |
@@ -88,16 +90,6 @@ BUILD_DIR_ECJ = "openjdk.build-ecj" | |||
88 | # Force arm mode for now | 90 | # Force arm mode for now |
89 | ARM_INSTRUCTION_SET_armv4t = "ARM" | 91 | ARM_INSTRUCTION_SET_armv4t = "ARM" |
90 | 92 | ||
91 | # readdir_r was deprecated in glibc-2.24. Ignore the error for now | ||
92 | # NOTE: When updating the recipe, please check if this is still needed | ||
93 | BUILD_CFLAGS_append = " -Wno-error=deprecated-declarations" | ||
94 | TARGET_CFLAGS_append = " -Wno-error=deprecated-declarations" | ||
95 | |||
96 | # WORKAROUND: disable the "specified bound depends on the length of the source argument" | ||
97 | # compiler error until we update openjdk8 to a fixed version | ||
98 | BUILD_CFLAGS_append = " -Wno-error=stringop-overflow" | ||
99 | TARGET_CFLAGS_append = " -Wno-error=stringop-overflow" | ||
100 | |||
101 | # Enable zero mode for arm based builds, as normal hotspot fails to build | 93 | # Enable zero mode for arm based builds, as normal hotspot fails to build |
102 | PACKAGECONFIG_append_armv4 = " zero" | 94 | PACKAGECONFIG_append_armv4 = " zero" |
103 | PACKAGECONFIG_append_armv5 = " zero" | 95 | PACKAGECONFIG_append_armv5 = " zero" |