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.
This commit is contained in:
Brent Cook 2014-07-27 06:15:26 -05:00
parent 1b62d5e416
commit f8195c9c22

View File

@ -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