From: Ivan Maidanski Date: Fri, 17 Mar 2017 08:21:13 +0000 (+0300) Subject: Fix GC shared library tests failure (musl) X-Git-Tag: v7.4.6~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bdfee0403b8aa51e0b7b5938e528ca276adc4085;p=gc Fix GC shared library tests failure (musl) Detect dl_iterate_phdr() presence by configure. * configure.ac (dl_iterate_phdr): Add AC_CHECK_FUNCS for. * configure.ac [ac_cv_func_dl_iterate_phdr] (HAVE_DL_ITERATE_PHDR): AC_DEFINE it. --- diff --git a/configure.ac b/configure.ac index e944b519..02d5f05e 100644 --- a/configure.ac +++ b/configure.ac @@ -462,6 +462,13 @@ if test "$ac_cv_func_getcontext" = "no"; then AC_DEFINE([NO_GETCONTEXT], [1], [Missing getcontext()]) fi +# Check whether dl_iterate_phdr exists (as a strong symbol). +AC_CHECK_FUNCS([dl_iterate_phdr]) +if test "$ac_cv_func_dl_iterate_phdr" = "yes"; then + AC_DEFINE([HAVE_DL_ITERATE_PHDR], [1], + [Define if 'dl_iterate_phdr' function is available.]) +fi + case "$host" in # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64 # and unnecessary everywhere.