diff options
author | Brent Cook <bcook@openbsd.org> | 2016-04-24 03:29:14 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-05-02 22:12:53 -0500 |
commit | 534ee348a9558917aacdaac901e7c630b61595a8 (patch) | |
tree | fcf9f3160edb7476aacf40faedf29a36aa7634bb /m4 | |
parent | ad914139c4c6dde31d8a17116e95f1de32d96386 (diff) | |
download | portable-534ee348a9558917aacdaac901e7c630b61595a8.tar.gz portable-534ee348a9558917aacdaac901e7c630b61595a8.tar.bz2 portable-534ee348a9558917aacdaac901e7c630b61595a8.zip |
check linker flags before checking for functions
Diffstat (limited to 'm4')
-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], [ |