Commit 82e923f6 by Richard Sandiford Committed by Richard Sandiford

configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.

	* configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
	* configure: Regenerate.

From-SVN: r80788
parent f645e2bd
2004-04-17 Richard Sandiford <rsandifo@redhat.com> 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
* configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
* configure: Regenerate.
2004-04-17 Richard Sandiford <rsandifo@redhat.com>
* gcc.c (used_arg): Check whether an option has been removed. * gcc.c (used_arg): Check whether an option has been removed.
2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
......
...@@ -2754,8 +2754,9 @@ AC_MSG_RESULT($gcc_cv_ld_pie) ...@@ -2754,8 +2754,9 @@ AC_MSG_RESULT($gcc_cv_ld_pie)
# UNSORTED # UNSORTED
# -------- # --------
AC_MSG_CHECKING(linker --as-needed support) AC_CACHE_CHECK(linker --as-needed support,
gcc_cv_ld_as_needed=no gcc_cv_ld_as_needed,
[gcc_cv_ld_as_needed=no
if test $in_tree_ld = yes ; then if test $in_tree_ld = yes ; then
if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \ if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
&& test $in_tree_ld_is_elf = yes; then && test $in_tree_ld_is_elf = yes; then
...@@ -2767,11 +2768,11 @@ elif test x$gcc_cv_ld != x; then ...@@ -2767,11 +2768,11 @@ elif test x$gcc_cv_ld != x; then
gcc_cv_ld_as_needed=yes gcc_cv_ld_as_needed=yes
fi fi
fi fi
])
if test x"$gcc_cv_ld_as_needed" = xyes; then if test x"$gcc_cv_ld_as_needed" = xyes; then
AC_DEFINE(HAVE_LD_AS_NEEDED, 1, AC_DEFINE(HAVE_LD_AS_NEEDED, 1,
[Define if your linker supports --as-needed and --no-as-needed options.]) [Define if your linker supports --as-needed and --no-as-needed options.])
fi fi
AC_MSG_RESULT($gcc_cv_ld_as_needed)
if test x$with_sysroot = x && test x$host = x$target \ if test x$with_sysroot = x && test x$host = x$target \
&& test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment