diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-03-17 11:21:13 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-03-17 11:21:13 +0300 |
commit | 0d5a8de4e3cb4ed231bfdcce8ea5693f6652cc5f (patch) | |
tree | 70c454bbbaed72d46a699ff96107d2eaa6d12e27 /configure.ac | |
parent | 0635b7714a1325587078077dbafe7a2f11689ddf (diff) | |
download | bdwgc-0d5a8de4e3cb4ed231bfdcce8ea5693f6652cc5f.tar.gz |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fa745b56..2cd79dc7 100644 --- a/configure.ac +++ b/configure.ac @@ -470,6 +470,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. |