mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03:00
Support glibc-back-compat on 64-bit POWER
This commit is contained in:
parent
43f3ada27b
commit
798bc0b29a
2 changed files with 11 additions and 0 deletions
|
@ -813,6 +813,11 @@ AX_GCC_FUNC_ATTRIBUTE([dllimport])
|
|||
if test x$use_glibc_compat != xno; then
|
||||
AX_CHECK_LINK_FLAG([[-Wl,--wrap=__divmoddi4]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=__divmoddi4"])
|
||||
AX_CHECK_LINK_FLAG([[-Wl,--wrap=log2f]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log2f"])
|
||||
case $host in
|
||||
powerpc64* | ppc64*)
|
||||
AX_CHECK_LINK_FLAG([[-Wl,--no-tls-get-addr-optimize]], [COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--no-tls-get-addr-optimize"])
|
||||
;;
|
||||
esac
|
||||
else
|
||||
AC_SEARCH_LIBS([clock_gettime],[rt])
|
||||
fi
|
||||
|
|
|
@ -54,6 +54,12 @@ __asm(".symver log2f_old,log2f@GLIBC_2.2.5");
|
|||
__asm(".symver log2f_old,log2f@GLIBC_2.4");
|
||||
#elif defined(__aarch64__)
|
||||
__asm(".symver log2f_old,log2f@GLIBC_2.17");
|
||||
#elif defined(__powerpc64__)
|
||||
# ifdef WORDS_BIGENDIAN
|
||||
__asm(".symver log2f_old,log2f@GLIBC_2.3");
|
||||
# else
|
||||
__asm(".symver log2f_old,log2f@GLIBC_2.17");
|
||||
# endif
|
||||
#elif defined(__riscv)
|
||||
__asm(".symver log2f_old,log2f@GLIBC_2.27");
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue