From f8195c9c22eda252afd753aea86b0280c34d6a0e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 27 Jul 2014 06:15:26 -0500 Subject: check link requirements for dl_iterate_phdr Note that gcc chose to disable this rather than cause link issues with older copies of Solaris 10: https://gcc.gnu.org/ml/gcc-patches/2012-01/msg00816.html If we want to support Solaris <10.10 (I'd rather support up-to-date versions), getentropy_solaris would need to change. --- configure.ac.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac.tpl b/configure.ac.tpl index 61476cf..d7bb8aa 100644 --- a/configure.ac.tpl +++ b/configure.ac.tpl @@ -39,6 +39,9 @@ AM_CONDITIONAL(HOST_WIN, test x$HOST_OS = xwin) AC_CHECK_FUNC([clock_gettime],, [AC_SEARCH_LIBS([clock_gettime],[rt posix4])]) +AC_CHECK_FUNC([dl_iterate_phdr],, + [AC_SEARCH_LIBS([dl_iterate_phdr],[dl])]) + AC_PROG_CC AC_PROG_LIBTOOL AC_PROG_CC_STDC -- cgit v1.2.3-55-g6feb