aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2016-04-24 03:29:14 -0500
committerBrent Cook <bcook@openbsd.org>2016-05-02 22:12:53 -0500
commit534ee348a9558917aacdaac901e7c630b61595a8 (patch)
treefcf9f3160edb7476aacf40faedf29a36aa7634bb /m4
parentad914139c4c6dde31d8a17116e95f1de32d96386 (diff)
downloadportable-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.m46
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
66AC_CHECK_FUNC([getauxval]) 66AC_CHECK_FUNC([getauxval])
67AC_CHECK_FUNC([clock_gettime],, [AC_SEARCH_LIBS([clock_gettime],[rt posix4])]) 67AC_SEARCH_LIBS([clock_gettime],[rt posix4])
68AC_CHECK_FUNC([dl_iterate_phdr],, [AC_SEARCH_LIBS([dl_iterate_phdr],[dl])]) 68AC_CHECK_FUNC([clock_gettime])
69AC_SEARCH_LIBS([dl_iterate_phdr],[dl])
70AC_CHECK_FUNC([dl_iterate_phdr])
69]) 71])
70 72
71AC_DEFUN([CHECK_VA_COPY], [ 73AC_DEFUN([CHECK_VA_COPY], [