PR target/57261
* configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
and Solaris 11+/x86 with gld.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198867
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ PR target/57261
+ * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
+ and Solaris 11+/x86 with gld.
+ * configure: Regenerate.
+
2013-05-14 Jakub Jelinek <jakub@redhat.com>
* expmed.c (expand_shift_1): Canonicalize rotates by
esac
fi
fi
+# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
+# dl_iterate_phdr, i.e. since Solaris 11.
+case "$target" in
+ *-*-solaris2.1[1-9]*)
+ case "$target" in
+ i?86-*-* | x86_64-*-*)
+ if echo "$ld_ver" | grep GNU > /dev/null; then
+ # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
+ gcc_cv_ld_as_needed=no
+ fi
+ ;;
+ esac
+ ;;
+ *-*-solaris2*)
+ gcc_cv_ld_as_needed=no
+ ;;
+esac
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
esac
fi
fi
+# --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
+# dl_iterate_phdr, i.e. since Solaris 11.
+case "$target" in
+ *-*-solaris2.1[[1-9]]*)
+ case "$target" in
+ i?86-*-* | x86_64-*-*)
+ if echo "$ld_ver" | grep GNU > /dev/null; then
+ # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
+ gcc_cv_ld_as_needed=no
+ fi
+ ;;
+ esac
+ ;;
+ *-*-solaris2*)
+ gcc_cv_ld_as_needed=no
+ ;;
+esac
])
if test x"$gcc_cv_ld_as_needed" = xyes; then
AC_DEFINE(HAVE_LD_AS_NEEDED, 1,