mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
Remove --as-needed configure test.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -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>
|
2012-04-25 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||||
Paul Pluzhnikov <ppluzhnikov@google.com>
|
Paul Pluzhnikov <ppluzhnikov@google.com>
|
||||||
|
|
||||||
|
11
Makeconfig
11
Makeconfig
@@ -388,13 +388,8 @@ ifndef asm-CPPFLAGS
|
|||||||
asm-CPPFLAGS =
|
asm-CPPFLAGS =
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(have-as-needed),yes)
|
|
||||||
as-needed := -Wl,--as-needed
|
as-needed := -Wl,--as-needed
|
||||||
no-as-needed := -Wl,--no-as-needed
|
no-as-needed := -Wl,--no-as-needed
|
||||||
else
|
|
||||||
as-needed :=
|
|
||||||
no-as-needed :=
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Must be supported by the linker.
|
# Must be supported by the linker.
|
||||||
no-whole-archive = -Wl,--no-whole-archive
|
no-whole-archive = -Wl,--no-whole-archive
|
||||||
@@ -534,11 +529,7 @@ ifneq ($(have-cc-with-libunwind),yes)
|
|||||||
else
|
else
|
||||||
libunwind = -lunwind
|
libunwind = -lunwind
|
||||||
endif
|
endif
|
||||||
ifneq ($(have-as-needed),yes)
|
libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
|
||||||
libgcc_eh := -lgcc_eh $(libunwind)
|
|
||||||
else
|
|
||||||
libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
|
|
||||||
endif
|
|
||||||
gnulib := -lgcc $(libgcc_eh)
|
gnulib := -lgcc $(libgcc_eh)
|
||||||
static-gnulib := -lgcc -lgcc_eh $(libunwind)
|
static-gnulib := -lgcc -lgcc_eh $(libunwind)
|
||||||
libc.so-gnulib := -lgcc
|
libc.so-gnulib := -lgcc
|
||||||
|
@@ -49,7 +49,6 @@ all-warnings = @all_warnings@
|
|||||||
have-z-combreloc = @libc_cv_z_combreloc@
|
have-z-combreloc = @libc_cv_z_combreloc@
|
||||||
have-z-execstack = @libc_cv_z_execstack@
|
have-z-execstack = @libc_cv_z_execstack@
|
||||||
have-Bgroup = @libc_cv_Bgroup@
|
have-Bgroup = @libc_cv_Bgroup@
|
||||||
have-as-needed = @libc_cv_as_needed@
|
|
||||||
with-fp = @with_fp@
|
with-fp = @with_fp@
|
||||||
old-glibc-headers = @old_glibc_headers@
|
old-glibc-headers = @old_glibc_headers@
|
||||||
unwind-find-fde = @libc_cv_gcc_unwind_find_fde@
|
unwind-find-fde = @libc_cv_gcc_unwind_find_fde@
|
||||||
|
29
configure
vendored
29
configure
vendored
@@ -650,7 +650,6 @@ libc_cv_fpie
|
|||||||
libc_cv_z_execstack
|
libc_cv_z_execstack
|
||||||
libc_cv_z_combreloc
|
libc_cv_z_combreloc
|
||||||
ASFLAGS_config
|
ASFLAGS_config
|
||||||
libc_cv_as_needed
|
|
||||||
libc_cv_Bgroup
|
libc_cv_Bgroup
|
||||||
libc_cv_cc_with_libunwind
|
libc_cv_cc_with_libunwind
|
||||||
VERSIONING
|
VERSIONING
|
||||||
@@ -6304,34 +6303,6 @@ fi
|
|||||||
$as_echo "$libc_cv_Bgroup" >&6; }
|
$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=
|
ASFLAGS_config=
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
|
{ $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; }
|
$as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
|
||||||
|
17
configure.in
17
configure.in
@@ -1519,23 +1519,6 @@ fi
|
|||||||
rm -f conftest*])
|
rm -f conftest*])
|
||||||
AC_SUBST(libc_cv_Bgroup)
|
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=
|
ASFLAGS_config=
|
||||||
AC_CACHE_CHECK(whether --noexecstack is desirable for .S files,
|
AC_CACHE_CHECK(whether --noexecstack is desirable for .S files,
|
||||||
libc_cv_as_noexecstack, [dnl
|
libc_cv_as_noexecstack, [dnl
|
||||||
|
Reference in New Issue
Block a user