Disable dl_iterate_phdr on Solaris 10
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 17 Jan 2012 09:50:37 +0000 (09:50 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 17 Jan 2012 09:50:37 +0000 (09:50 +0000)
* configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
Solaris 11+.
* configure: Regenerate.

From-SVN: r183235

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 9efdd70ddbf74723d8508bb34ff89f661eeaa053..4d3a46fe6eade83fa8bde25bad4660604e4940fd 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
+       Solaris 11+.
+       * configure: Regenerate.
+
 2012-01-16  Jan Hubicka  <jh@suse.cz>
 
        PR c/12245
index f1a6b627e0df0f9245c68b974344c7906895aca7..96998911229983b9e354c64496bb263ec341d1dd 100755 (executable)
 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
 gcc_cv_target_dl_iterate_phdr=unknown
 case "$target" in
-  *-*-solaris2*)
+  # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
+  # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
+  # libdl there, both complicating its use and breaking compatibility
+  # between Solaris 10 updates.
+  *-*-solaris2.1[1-9]*)
     # <link.h> needs both a dl_iterate_phdr declaration and support for
     # compilation with largefile support.
     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
index b486acea39ae39a60e15bfdafe611dcda65c0c8a..01e37b38b6ef45caa9d14b76fc8bdd6985ba6411 100644 (file)
@@ -4642,7 +4642,11 @@ fi
 AC_MSG_CHECKING(dl_iterate_phdr in target C library)
 gcc_cv_target_dl_iterate_phdr=unknown
 case "$target" in
-  *-*-solaris2*)
+  # Restrict to Solaris 11+.  While most of the Solaris 11 linker changes
+  # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
+  # libdl there, both complicating its use and breaking compatibility
+  # between Solaris 10 updates.
+  *-*-solaris2.1[[1-9]]*)
     # <link.h> needs both a dl_iterate_phdr declaration and support for
     # compilation with largefile support.
     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \