diff options
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch')
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch | 219 |
1 files changed, 219 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch b/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch new file mode 100644 index 0000000..7991a04 --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-8/0013-autoconf-remove-Werror.patch | |||
@@ -0,0 +1,219 @@ | |||
1 | From 3a41aceff84ac9c64910f2efbd4bee7c3532c65d Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Leitner <richard.leitner@skidata.com> | ||
3 | Date: Wed, 29 Apr 2020 10:15:11 +0200 | ||
4 | Subject: [PATCH] autoconf: remove Werror | ||
5 | |||
6 | We don't want to mess around with disabling warnings on new | ||
7 | compiler versions therefore we remove Werror. | ||
8 | |||
9 | Upstream-Status: Invalid | ||
10 | |||
11 | Signed-off-by: Richard Leitner <richard.leitner@skidata.com> | ||
12 | |||
13 | --- | ||
14 | common/autoconf/flags.m4 | 12 +++--- | ||
15 | common/autoconf/generated-configure.sh | 56 +++++++++++++------------- | ||
16 | 2 files changed, 34 insertions(+), 34 deletions(-) | ||
17 | |||
18 | diff --git a/common/autoconf/flags.m4 b/common/autoconf/flags.m4 | ||
19 | index 077efa29..b98575a1 100644 | ||
20 | --- a/common/autoconf/flags.m4 | ||
21 | +++ b/common/autoconf/flags.m4 | ||
22 | @@ -399,7 +399,7 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], | ||
23 | LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro" | ||
24 | fi | ||
25 | $2CXXSTD_CXXFLAG="-std=gnu++98" | ||
26 | - FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG -Werror], | ||
27 | + FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG], | ||
28 | [], [$2CXXSTD_CXXFLAG=""]) | ||
29 | $2CXXFLAGS_JDK="${$2CXXFLAGS_JDK} ${$2CXXSTD_CXXFLAG}" | ||
30 | $2JVM_CFLAGS="${$2JVM_CFLAGS} ${$2CXXSTD_CXXFLAG}" | ||
31 | @@ -489,17 +489,17 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], | ||
32 | # Notably, -ffp-contract=off needs to be added for GCC >= 4.6, | ||
33 | # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6 | ||
34 | COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off" | ||
35 | - FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]COMPILER_FP_CONTRACT_OFF_FLAG -Werror], | ||
36 | + FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]COMPILER_FP_CONTRACT_OFF_FLAG], | ||
37 | [], [COMPILER_FP_CONTRACT_OFF_FLAG=""]) | ||
38 | if test "x$COMPILER_FP_CONTRACT_OFF_FLAG" = x; then | ||
39 | if test "$OPENJDK_TARGET_CPU_ARCH" = "x86" || | ||
40 | test "$OPENJDK_TARGET_CPU_ARCH" = "x86_64" || | ||
41 | test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then | ||
42 | M_NO_FUSED_ADD_FLAG="-mno-fused-madd" | ||
43 | - FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]M_NO_FUSED_ADD_FLAG -Werror], | ||
44 | + FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]M_NO_FUSED_ADD_FLAG], | ||
45 | [], [M_NO_FUSED_ADD_FLAG=""]) | ||
46 | NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing" | ||
47 | - FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]NO_STRICT_ALIASING_FLAG -Werror], | ||
48 | + FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]NO_STRICT_ALIASING_FLAG], | ||
49 | [], [NO_STRICT_ALIASING_FLAG=""]) | ||
50 | if test "x$M_NO_FUSED_ADD_FLAG" != "x" && test "x$NO_STRICT_ALIASING_FLAG" != "x"; then | ||
51 | FDLIBM_CFLAGS="$M_NO_FUSED_ADD_FLAG $NO_STRICT_ALIASING_FLAG" | ||
52 | @@ -866,11 +866,11 @@ AC_DEFUN_ONCE([FLAGS_SETUP_GCC6_COMPILER_FLAGS], | ||
53 | # Notably, value range propagation now assumes that the this pointer of C++ | ||
54 | # member functions is non-null. | ||
55 | NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" | ||
56 | - FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror], | ||
57 | + FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_DELETE_NULL_POINTER_CHECKS_CFLAG], | ||
58 | [], [NO_DELETE_NULL_POINTER_CHECKS_CFLAG=""]) | ||
59 | AC_SUBST([NO_DELETE_NULL_POINTER_CHECKS_CFLAG]) | ||
60 | NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" | ||
61 | - FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_LIFETIME_DSE_CFLAG -Werror], | ||
62 | + FLAGS_COMPILER_CHECK_ARGUMENTS([$NO_LIFETIME_DSE_CFLAG], | ||
63 | [], [NO_LIFETIME_DSE_CFLAG=""]) | ||
64 | CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" | ||
65 | AC_SUBST([NO_LIFETIME_DSE_CFLAG]) | ||
66 | diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh | ||
67 | index d57035b0..1953dc4e 100644 | ||
68 | --- a/common/autoconf/generated-configure.sh | ||
69 | +++ b/common/autoconf/generated-configure.sh | ||
70 | @@ -41498,12 +41498,12 @@ $as_echo "$ac_cv_c_bigendian" >&6; } | ||
71 | fi | ||
72 | CXXSTD_CXXFLAG="-std=gnu++98" | ||
73 | |||
74 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 | ||
75 | -$as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } | ||
76 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG\"" >&5 | ||
77 | +$as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG\"... " >&6; } | ||
78 | supports=yes | ||
79 | |||
80 | saved_cxxflags="$CXXFLAGS" | ||
81 | - CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" | ||
82 | + CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG" | ||
83 | ac_ext=cpp | ||
84 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
85 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
86 | @@ -41654,12 +41654,12 @@ fi | ||
87 | NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" | ||
88 | |||
89 | |||
90 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 | ||
91 | -$as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } | ||
92 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5 | ||
93 | +$as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; } | ||
94 | supports=yes | ||
95 | |||
96 | saved_cflags="$CFLAGS" | ||
97 | - CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" | ||
98 | + CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG" | ||
99 | ac_ext=c | ||
100 | ac_cpp='$CPP $CPPFLAGS' | ||
101 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
102 | @@ -41694,12 +41694,12 @@ $as_echo "$supports" >&6; } | ||
103 | fi | ||
104 | |||
105 | |||
106 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 | ||
107 | -$as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } | ||
108 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5 | ||
109 | +$as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; } | ||
110 | supports=yes | ||
111 | |||
112 | saved_cxxflags="$CXXFLAGS" | ||
113 | - CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" | ||
114 | + CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG" | ||
115 | ac_ext=cpp | ||
116 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
117 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
118 | @@ -41733,8 +41733,8 @@ $as_echo "$supports" >&6; } | ||
119 | fi | ||
120 | |||
121 | |||
122 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 | ||
123 | -$as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } | ||
124 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"" >&5 | ||
125 | +$as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG\"... " >&6; } | ||
126 | supports=no | ||
127 | if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi | ||
128 | |||
129 | @@ -41750,12 +41750,12 @@ $as_echo "$supports" >&6; } | ||
130 | NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" | ||
131 | |||
132 | |||
133 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 | ||
134 | -$as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } | ||
135 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG\"" >&5 | ||
136 | +$as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; } | ||
137 | supports=yes | ||
138 | |||
139 | saved_cflags="$CFLAGS" | ||
140 | - CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" | ||
141 | + CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG" | ||
142 | ac_ext=c | ||
143 | ac_cpp='$CPP $CPPFLAGS' | ||
144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
145 | @@ -41789,12 +41789,12 @@ $as_echo "$supports" >&6; } | ||
146 | fi | ||
147 | |||
148 | |||
149 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 | ||
150 | -$as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } | ||
151 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG\"" >&5 | ||
152 | +$as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; } | ||
153 | supports=yes | ||
154 | |||
155 | saved_cxxflags="$CXXFLAGS" | ||
156 | - CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" | ||
157 | + CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG" | ||
158 | ac_ext=cpp | ||
159 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
160 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
161 | @@ -41828,8 +41828,8 @@ $as_echo "$supports" >&6; } | ||
162 | fi | ||
163 | |||
164 | |||
165 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 | ||
166 | -$as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } | ||
167 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG\"" >&5 | ||
168 | +$as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG\"... " >&6; } | ||
169 | supports=no | ||
170 | if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi | ||
171 | |||
172 | @@ -41862,12 +41862,12 @@ $as_echo "$supports" >&6; } | ||
173 | # -mno-fused-madd -fno-strict-aliasing for GCC < 4.6 | ||
174 | COMPILER_FP_CONTRACT_OFF_FLAG="-ffp-contract=off" | ||
175 | |||
176 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"" >&5 | ||
177 | -$as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG -Werror\"... " >&6; } | ||
178 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG\"" >&5 | ||
179 | +$as_echo_n "checking if the C++ compiler supports \"$COMPILER_FP_CONTRACT_OFF_FLAG\"... " >&6; } | ||
180 | supports=yes | ||
181 | |||
182 | saved_cxxflags="$CXXFLAGS" | ||
183 | - CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG -Werror" | ||
184 | + CXXFLAGS="$CXXFLAG $COMPILER_FP_CONTRACT_OFF_FLAG" | ||
185 | ac_ext=cpp | ||
186 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
187 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
188 | @@ -41906,12 +41906,12 @@ $as_echo "$supports" >&6; } | ||
189 | test "$OPENJDK_TARGET_CPU_ARCH" = "ppc"; then | ||
190 | M_NO_FUSED_ADD_FLAG="-mno-fused-madd" | ||
191 | |||
192 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"" >&5 | ||
193 | -$as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG -Werror\"... " >&6; } | ||
194 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG\"" >&5 | ||
195 | +$as_echo_n "checking if the C++ compiler supports \"$M_NO_FUSED_ADD_FLAG\"... " >&6; } | ||
196 | supports=yes | ||
197 | |||
198 | saved_cxxflags="$CXXFLAGS" | ||
199 | - CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG -Werror" | ||
200 | + CXXFLAGS="$CXXFLAG $M_NO_FUSED_ADD_FLAG" | ||
201 | ac_ext=cpp | ||
202 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
204 | @@ -41946,12 +41946,12 @@ $as_echo "$supports" >&6; } | ||
205 | |||
206 | NO_STRICT_ALIASING_FLAG="-fno-strict-aliasing" | ||
207 | |||
208 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"" >&5 | ||
209 | -$as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG -Werror\"... " >&6; } | ||
210 | + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG\"" >&5 | ||
211 | +$as_echo_n "checking if the C++ compiler supports \"$NO_STRICT_ALIASING_FLAG\"... " >&6; } | ||
212 | supports=yes | ||
213 | |||
214 | saved_cxxflags="$CXXFLAGS" | ||
215 | - CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG -Werror" | ||
216 | + CXXFLAGS="$CXXFLAG $NO_STRICT_ALIASING_FLAG" | ||
217 | ac_ext=cpp | ||
218 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||