Remove --as-needed configure test.

This commit is contained in:
Joseph Myers 2012-04-25 17:02:33 +00:00
parent ceab42c380
commit a3cc4f48e9
5 changed files with 11 additions and 57 deletions

View File

@ -1,3 +1,13 @@
2012-04-25 Joseph Myers <joseph@codesourcery.com>
* configure.in (libc_cv_as_needed): Remove test.
* configure: Regenerated.
* Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
conditional definition.
[$(have-as-needed) != yes] (no-as-needed): Likewise.
[$(have-as-needed) != yes] (libgcc_eh): Likewise.
* config.make.in (have-as-needed): Remove variable.
2012-04-25 Siddhesh Poyarekar <siddhesh@redhat.com>
Paul Pluzhnikov <ppluzhnikov@google.com>

View File

@ -388,13 +388,8 @@ ifndef asm-CPPFLAGS
asm-CPPFLAGS =
endif
ifeq ($(have-as-needed),yes)
as-needed := -Wl,--as-needed
no-as-needed := -Wl,--no-as-needed
else
as-needed :=
no-as-needed :=
endif
# Must be supported by the linker.
no-whole-archive = -Wl,--no-whole-archive
@ -534,11 +529,7 @@ ifneq ($(have-cc-with-libunwind),yes)
else
libunwind = -lunwind
endif
ifneq ($(have-as-needed),yes)
libgcc_eh := -lgcc_eh $(libunwind)
else
libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
endif
libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
gnulib := -lgcc $(libgcc_eh)
static-gnulib := -lgcc -lgcc_eh $(libunwind)
libc.so-gnulib := -lgcc

View File

@ -49,7 +49,6 @@ all-warnings = @all_warnings@
have-z-combreloc = @libc_cv_z_combreloc@
have-z-execstack = @libc_cv_z_execstack@
have-Bgroup = @libc_cv_Bgroup@
have-as-needed = @libc_cv_as_needed@
with-fp = @with_fp@
old-glibc-headers = @old_glibc_headers@
unwind-find-fde = @libc_cv_gcc_unwind_find_fde@

29
configure vendored
View File

@ -650,7 +650,6 @@ libc_cv_fpie
libc_cv_z_execstack
libc_cv_z_combreloc
ASFLAGS_config
libc_cv_as_needed
libc_cv_Bgroup
libc_cv_cc_with_libunwind
VERSIONING
@ -6304,34 +6303,6 @@ fi
$as_echo "$libc_cv_Bgroup" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
$as_echo_n "checking for --as-needed option... " >&6; }
if ${libc_cv_as_needed+:} false; then :
$as_echo_n "(cached) " >&6
else
cat > conftest.c <<EOF
int main (void) { return 0; }
EOF
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
-fPIC -shared -o conftest.so conftest.c
-lgcc_s -Wl,--as-needed
-nostdlib 1>&5'
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }
then
libc_cv_as_needed=yes
else
libc_cv_as_needed=no
fi
rm -f conftest*
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
$as_echo "$libc_cv_as_needed" >&6; }
ASFLAGS_config=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
$as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }

View File

@ -1519,23 +1519,6 @@ fi
rm -f conftest*])
AC_SUBST(libc_cv_Bgroup)
AC_CACHE_CHECK(for --as-needed option,
libc_cv_as_needed, [dnl
cat > conftest.c <<EOF
int main (void) { return 0; }
EOF
if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
-fPIC -shared -o conftest.so conftest.c
-lgcc_s -Wl,--as-needed
-nostdlib 1>&AS_MESSAGE_LOG_FD])
then
libc_cv_as_needed=yes
else
libc_cv_as_needed=no
fi
rm -f conftest*])
AC_SUBST(libc_cv_as_needed)
ASFLAGS_config=
AC_CACHE_CHECK(whether --noexecstack is desirable for .S files,
libc_cv_as_noexecstack, [dnl