You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #15703: Update secp256k1 subtree to latest upstream
5424598 Squashed 'src/secp256k1/' changes from 0b70241850..b19c000063 (Pieter Wuille)
Pull request description:
It's been 1.5 years since our secp256k1 subtree was updated, while the upstream project has undergone a number of incremental improvements (performance, tests, build system fixes), plus gained the groundwork for batch verification.
As we're early in the 0.19 window, this seems like a good time to get these merged.
ACKs for commit 99df27:
fanquake:
utACK 99df276 the subtree merge, still need to test the actual changes.
laanwj:
utACK 99df276
Tree-SHA512: 769a699366321635068ebfbd9d3f30f6e72401c4fcdc1fdc84e5b3fd888c3f01437748f6cd23a507ab47cf04c226cd504fd48aee654457c34bb106c9db7e5c09
AC_MSG_CHECKING([for working native compiler: ${CC_FOR_BUILD}])
176
188
AC_RUN_IFELSE(
177
-
[AC_LANG_PROGRAM([], [return 0])],
189
+
[AC_LANG_PROGRAM([], [])],
178
190
[working_native_cc=yes],
179
191
[working_native_cc=no],[dnl])
180
-
CC="$TEMP_CC"
192
+
193
+
CFLAGS_FOR_BUILD="$CFLAGS"
194
+
195
+
# Restore the environment
181
196
cross_compiling=$save_cross_compiling
197
+
CC="$SAVE_CC"
198
+
CFLAGS="$SAVE_CFLAGS"
199
+
CPPFLAGS="$SAVE_CPPFLAGS"
200
+
LDFLAGS="$SAVE_LDFLAGS"
182
201
183
202
if test x"$working_native_cc" = x"no"; then
203
+
AC_MSG_RESULT([no])
184
204
set_precomp=no
205
+
m4_define([please_set_for_build], [Please set CC_FOR_BUILD, CFLAGS_FOR_BUILD, CPPFLAGS_FOR_BUILD, and/or LDFLAGS_FOR_BUILD.])
185
206
if test x"$use_ecmult_static_precomputation" = x"yes"; then
186
-
AC_MSG_ERROR([${CC_FOR_BUILD} does not produce working binaries. Please set CC_FOR_BUILD])
207
+
AC_MSG_ERROR([native compiler ${CC_FOR_BUILD} does not produce working binaries. please_set_for_build])
187
208
else
188
-
AC_MSG_RESULT([${CC_FOR_BUILD} does not produce working binaries. Please set CC_FOR_BUILD])
209
+
AC_MSG_WARN([Disabling statically generated ecmult table because the native compiler ${CC_FOR_BUILD} does not produce working binaries. please_set_for_build])
189
210
fi
190
211
else
191
-
AC_MSG_RESULT([ok])
212
+
AC_MSG_RESULT([yes])
192
213
set_precomp=yes
193
214
fi
194
215
else
@@ -441,17 +462,6 @@ if test x"$use_external_asm" = x"yes"; then
441
462
AC_DEFINE(USE_EXTERNAL_ASM, 1, [Define this symbol if an external (non-inline) assembly implementation is used])
0 commit comments