diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 5052cf436e3..952c96fbfea 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2012-10-11 Ian Lance Taylor + + * configure.ac: Do not use dl_iterate_phdr on Solaris 10. + * configure: Rebuild. + 2012-10-10 Ian Lance Taylor * elf.c: Rename all Elf typedefs to start with b_elf, and be all diff --git a/libbacktrace/configure b/libbacktrace/configure index 8d34856e693..9a88e8e48e8 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -12213,6 +12213,12 @@ else fi rm -f conftest* + case "${host}" in + *-*-solaris2.10*) + # Avoid dl_iterate_phdr on Solaris 10, where it is in the + # header file but is only in -ldl. + have_dl_iterate_phdr=no ;; + esac else ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then : diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index 083a086c85a..9633afd5ac3 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -235,6 +235,12 @@ else # When built as a GCC target library, we can't do a link test. AC_EGREP_HEADER([dl_iterate_phdr], [link.h], [have_dl_iterate_phdr=yes], [have_dl_iterate_phdr=no]) + case "${host}" in + *-*-solaris2.10*) + # Avoid dl_iterate_phdr on Solaris 10, where it is in the + # header file but is only in -ldl. + have_dl_iterate_phdr=no ;; + esac else AC_CHECK_FUNC([dl_iterate_phdr], [have_dl_iterate_phdr=yes], [have_dl_iterate_phdr=no])