aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-10-11 16:43:47 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-10-11 16:43:47 +0000
commit5551b12c31a9de37316de9aa8174ad56645ac440 (patch)
treeca689d1a9fcffc8b89ac240e8dd608b474866152 /libbacktrace
parentcf1e4683aa8cfbbc0b417da28eaecf9949ee6bd1 (diff)
downloadgcc-5551b12c31a9de37316de9aa8174ad56645ac440.zip
gcc-5551b12c31a9de37316de9aa8174ad56645ac440.tar.gz
gcc-5551b12c31a9de37316de9aa8174ad56645ac440.tar.bz2
configure.ac: Do not use dl_iterate_phdr on Solaris 10.
* configure.ac: Do not use dl_iterate_phdr on Solaris 10. * configure: Rebuild. From-SVN: r192371
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog5
-rwxr-xr-xlibbacktrace/configure6
-rw-r--r--libbacktrace/configure.ac6
3 files changed, 17 insertions, 0 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index 5052cf4..952c96f 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-11 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
+ * configure: Rebuild.
+
2012-10-10 Ian Lance Taylor <iant@google.com>
* elf.c: Rename all Elf typedefs to start with b_elf, and be all
diff --git a/libbacktrace/configure b/libbacktrace/configure
index 8d34856..9a88e8e4 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 083a086..9633afd 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])