diff options
author | Brent Cook <bcook@openbsd.org> | 2016-04-24 03:29:14 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-04-24 03:29:14 -0500 |
commit | 466e389d3f52c9e75cf4849669bca16e512ee110 (patch) | |
tree | d2695b2ba5d50e5b4761b453d5835139395f8f92 | |
parent | c94670a8cd39f8a8843e9adba2a6030adb00ac94 (diff) | |
download | portable-466e389d3f52c9e75cf4849669bca16e512ee110.tar.gz portable-466e389d3f52c9e75cf4849669bca16e512ee110.tar.bz2 portable-466e389d3f52c9e75cf4849669bca16e512ee110.zip |
check linker flags before checking for functions
-rw-r--r-- | m4/check-libc.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index a15563b..a8f6646 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -64,8 +64,10 @@ AM_CONDITIONAL([HAVE_ARC4RANDOM_BUF], | |||
64 | 64 | ||
65 | # Check for getentropy fallback dependencies | 65 | # Check for getentropy fallback dependencies |
66 | AC_CHECK_FUNC([getauxval]) | 66 | AC_CHECK_FUNC([getauxval]) |
67 | AC_CHECK_FUNC([clock_gettime],, [AC_SEARCH_LIBS([clock_gettime],[rt posix4])]) | 67 | AC_SEARCH_LIBS([clock_gettime],[rt posix4]) |
68 | AC_CHECK_FUNC([dl_iterate_phdr],, [AC_SEARCH_LIBS([dl_iterate_phdr],[dl])]) | 68 | AC_CHECK_FUNC([clock_gettime]) |
69 | AC_SEARCH_LIBS([dl_iterate_phdr],[dl]) | ||
70 | AC_CHECK_FUNC([dl_iterate_phdr]) | ||
69 | ]) | 71 | ]) |
70 | 72 | ||
71 | AC_DEFUN([CHECK_VA_COPY], [ | 73 | AC_DEFUN([CHECK_VA_COPY], [ |