mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
Avoid weak-linked getauxval support on non-linux platforms (like macOS)
This commit is contained in:
parent
41a413b317
commit
836a3dc02c
@ -1116,8 +1116,10 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
|||||||
|
|
||||||
AC_MSG_CHECKING(for weak getauxval support in the compiler)
|
AC_MSG_CHECKING(for weak getauxval support in the compiler)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||||
|
#ifdef __linux__
|
||||||
unsigned long getauxval(unsigned long type) __attribute__((weak));
|
unsigned long getauxval(unsigned long type) __attribute__((weak));
|
||||||
#define AT_HWCAP 16
|
#define AT_HWCAP 16
|
||||||
|
#endif
|
||||||
]], [[
|
]], [[
|
||||||
getauxval(AT_HWCAP);
|
getauxval(AT_HWCAP);
|
||||||
]])],
|
]])],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user