diff mbox

[build] Disable dl_iterate_phdr on Solaris 10

Message ID yddwr8q3bqg.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Jan. 17, 2012, 9:43 a.m. UTC
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:

> 2012-01-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
>
> 	* configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
> 	Solaris 11+.
> 	* configure: Regenerate.

It helps to actually attach the patch.

Comments

Paolo Bonzini Jan. 18, 2012, 3:01 p.m. UTC | #1
On 01/17/2012 10:43 AM, Rainer Orth wrote:
> Rainer Orth<ro@CeBiTec.Uni-Bielefeld.DE>  writes:
>
>> 2012-01-15  Rainer Orth<ro@CeBiTec.Uni-Bielefeld.DE>
>>
>> 	* configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
>> 	Solaris 11+.
>> 	* configure: Regenerate.
>
> It helps to actually attach the patch.

Ok.

Paolo
diff mbox

Patch

diff --git a/gcc/configure.ac b/gcc/configure.ac
--- 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 \