mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge 7f81f5459f into merged_master (Bitcoin PR bitcoin/bitcoin#23082)
This commit is contained in:
commit
4fd50c68d0
3 changed files with 3 additions and 20 deletions
16
configure.ac
16
configure.ac
|
|
@ -1222,8 +1222,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <xmmintrin.h>]], [[
|
|||
|
||||
AC_MSG_CHECKING(for strong getauxval support in the system headers)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <arm_acle.h>
|
||||
#include <arm_neon.h>
|
||||
#include <sys/auxv.h>
|
||||
]], [[
|
||||
getauxval(AT_HWCAP);
|
||||
|
|
@ -1232,19 +1230,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|||
[ AC_MSG_RESULT(no); HAVE_STRONG_GETAUXVAL=0 ]
|
||||
)
|
||||
|
||||
AC_MSG_CHECKING(for weak getauxval support in the compiler)
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef __linux__
|
||||
unsigned long getauxval(unsigned long type) __attribute__((weak));
|
||||
#define AT_HWCAP 16
|
||||
#endif
|
||||
]], [[
|
||||
getauxval(AT_HWCAP);
|
||||
]])],
|
||||
[ AC_MSG_RESULT(yes); HAVE_WEAK_GETAUXVAL=1; AC_DEFINE(HAVE_WEAK_GETAUXVAL, 1, [Define this symbol to build code that uses getauxval (weak linking)]) ],
|
||||
[ AC_MSG_RESULT(no); HAVE_WEAK_GETAUXVAL=0 ]
|
||||
)
|
||||
|
||||
have_any_system=no
|
||||
AC_MSG_CHECKING([for std::system])
|
||||
AC_LINK_IFELSE(
|
||||
|
|
@ -1891,7 +1876,6 @@ AC_SUBST(HAVE_O_CLOEXEC)
|
|||
AC_SUBST(HAVE_BUILTIN_PREFETCH)
|
||||
AC_SUBST(HAVE_MM_PREFETCH)
|
||||
AC_SUBST(HAVE_STRONG_GETAUXVAL)
|
||||
AC_SUBST(HAVE_WEAK_GETAUXVAL)
|
||||
AC_SUBST(ANDROID_ARCH)
|
||||
AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/config.ini])
|
||||
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh])
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ CRC32C_CPPFLAGS_INT += -I$(srcdir)/crc32c/include
|
|||
CRC32C_CPPFLAGS_INT += -DHAVE_BUILTIN_PREFETCH=@HAVE_BUILTIN_PREFETCH@
|
||||
CRC32C_CPPFLAGS_INT += -DHAVE_MM_PREFETCH=@HAVE_MM_PREFETCH@
|
||||
CRC32C_CPPFLAGS_INT += -DHAVE_STRONG_GETAUXVAL=@HAVE_STRONG_GETAUXVAL@
|
||||
CRC32C_CPPFLAGS_INT += -DHAVE_WEAK_GETAUXVAL=@HAVE_WEAK_GETAUXVAL@
|
||||
CRC32C_CPPFLAGS_INT += -DCRC32C_TESTS_BUILT_WITH_GLOG=0
|
||||
|
||||
if ENABLE_SSE42
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
#include <sys/vmmeter.h>
|
||||
#endif
|
||||
#endif
|
||||
#if defined(HAVE_STRONG_GETAUXVAL) || defined(HAVE_WEAK_GETAUXVAL)
|
||||
#if defined(HAVE_STRONG_GETAUXVAL)
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -326,7 +326,7 @@ void RandAddStaticEnv(CSHA512& hasher)
|
|||
// Bitcoin client version
|
||||
hasher << CLIENT_VERSION;
|
||||
|
||||
#if defined(HAVE_STRONG_GETAUXVAL) || defined(HAVE_WEAK_GETAUXVAL)
|
||||
#if defined(HAVE_STRONG_GETAUXVAL)
|
||||
// Information available through getauxval()
|
||||
# ifdef AT_HWCAP
|
||||
hasher << getauxval(AT_HWCAP);
|
||||
|
|
@ -346,7 +346,7 @@ void RandAddStaticEnv(CSHA512& hasher)
|
|||
const char* exec_str = (const char*)getauxval(AT_EXECFN);
|
||||
if (exec_str) hasher.Write((const unsigned char*)exec_str, strlen(exec_str) + 1);
|
||||
# endif
|
||||
#endif // HAVE_STRONG_GETAUXVAL || HAVE_WEAK_GETAUXVAL
|
||||
#endif // HAVE_STRONG_GETAUXVAL
|
||||
|
||||
#ifdef HAVE_GETCPUID
|
||||
AddAllCPUID(hasher);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue