aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2012-01-17 09:50:37 +0000
committerRainer Orth <ro@gcc.gnu.org>2012-01-17 09:50:37 +0000
commit2692365782f98af21bf158be9f70c2c4dd870068 (patch)
treec26e8692d6a4d5e46dec5331b13986d0cf72a414 /gcc
parent9e8fa6bf3ea219fdaebdf564d952315bdd61dc43 (diff)
downloadgcc-2692365782f98af21bf158be9f70c2c4dd870068.zip
gcc-2692365782f98af21bf158be9f70c2c4dd870068.tar.gz
gcc-2692365782f98af21bf158be9f70c2c4dd870068.tar.bz2
Disable dl_iterate_phdr on Solaris 10
* configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on Solaris 11+. * configure: Regenerate. From-SVN: r183235
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure6
-rw-r--r--gcc/configure.ac6
3 files changed, 16 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9efdd70..4d3a46f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/configure b/gcc/configure
index f1a6b62..9699891 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -26726,7 +26726,11 @@ fi
$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 \
diff --git a/gcc/configure.ac b/gcc/configure.ac
index b486ace..01e37b3 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -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 \