Skip to content

Commit 836a3dc

Browse files
committed
Avoid weak-linked getauxval support on non-linux platforms (like macOS)
1 parent 41a413b commit 836a3dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,8 +1116,10 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
11161116

11171117
AC_MSG_CHECKING(for weak getauxval support in the compiler)
11181118
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1119+
#ifdef __linux__
11191120
unsigned long getauxval(unsigned long type) __attribute__((weak));
11201121
#define AT_HWCAP 16
1122+
#endif
11211123
]], [[
11221124
getauxval(AT_HWCAP);
11231125
]])],

0 commit comments

Comments
 (0)