Skip to content

Commit

Permalink
Avoid weak-linked getauxval support on non-linux platforms (like macOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschnelli committed Dec 7, 2020
1 parent 41a413b commit 836a3dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1116,8 +1116,10 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[

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);
]])],
Expand Down

0 comments on commit 836a3dc

Please sign in to comment.