]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove -static-libgcc configure test.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 15 Oct 2015 19:32:58 +0000 (19:32 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 15 Oct 2015 19:32:58 +0000 (19:32 +0000)
There is a configure test for -static-libgcc.  GCC added this option
in version 3.0, so this test is obsolete; this patch removes it.

Tested for x86_64 and x86 (testsuite, and that installed shared
libraries are unchanged by the patch).

* configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
* configure: Regenerated.
* config.make.in (static-libgcc): Remove variable.
* Makerules (build-shlib-helper): Use -static-libgcc instead of
$(static-libgcc).
(build-module-helper): Likewise.

ChangeLog
Makerules
config.make.in
configure
configure.ac

index bcf53f9b7fcbd756ded8b4443e9ca093091bf7ba..cbcb070fa92b11a963a959c1be326bdc04790ef0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
 
+       * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
+       * configure: Regenerated.
+       * config.make.in (static-libgcc): Remove variable.
+       * Makerules (build-shlib-helper): Use -static-libgcc instead of
+       $(static-libgcc).
+       (build-module-helper): Likewise.
+
        * configure.ac (libc_cv_friendly_stddef): Remove configure test.
        * configure: Regenerated.
 
index f9ca3f5021e980114b3799b89f0a2a16055f17d8..1329f73c3843dda842dcfa589c2747746adbb804 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -518,7 +518,7 @@ lib%.so: lib%_pic.a $(+preinit) $(+postinit) $(link-libc-deps)
        $(call after-link,$@)
 
 define build-shlib-helper
-$(LINK.o) -shared $(static-libgcc) -Wl,-O1 $(sysdep-LDFLAGS) \
+$(LINK.o) -shared -static-libgcc -Wl,-O1 $(sysdep-LDFLAGS) \
          $(if $($(@F)-no-z-defs)$(no-z-defs),,-Wl,-z,defs) $(rtld-LDFLAGS) \
          $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \
          $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
@@ -577,7 +577,7 @@ $(build-shlib-helper) -o $@ $(shlib-lds-flags) \
 endef
 
 define build-module-helper
-$(LINK.o) -shared $(static-libgcc) $(sysdep-LDFLAGS) $(rtld-LDFLAGS) \
+$(LINK.o) -shared -static-libgcc $(sysdep-LDFLAGS) $(rtld-LDFLAGS) \
          $(if $($(@F)-no-z-defs)$(no-z-defs),,-Wl,-z,defs) \
          -B$(csu-objpfx) $(load-map-file) \
          $(LDFLAGS.so) $(LDFLAGS-$(@F:%.so=%).so) \
index 839d86fa0c13e6b144bf07531500cfc816a32ba3..644955928d89cf28e618f743645d7568443fc1be 100644 (file)
@@ -70,8 +70,6 @@ use-default-link = @use_default_link@
 output-format = @libc_cv_output_format@
 have-cxx-thread_local = @libc_cv_cxx_thread_local@
 
-static-libgcc = @libc_cv_gcc_static_libgcc@
-
 exceptions = @exceptions@
 multi-arch = @multi_arch@
 
index 4b96ec7ad74418953c1b5bd67cb86755c686a34f..3d7b08892d97e492544cf9242e14e4a6ba134bfc 100755 (executable)
--- a/configure
+++ b/configure
@@ -641,7 +641,6 @@ BISON
 INSTALL_INFO
 PERL
 BASH_SHELL
-libc_cv_gcc_static_libgcc
 CXX_SYSINCLUDES
 SYSINCLUDES
 AUTOCONF
@@ -5316,21 +5315,6 @@ as_fn_error $? "
 *** and run configure again." "$LINENO" 5
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
-$as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
-if ${libc_cv_gcc_static_libgcc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
-  libc_cv_gcc_static_libgcc=
-else
-  libc_cv_gcc_static_libgcc=-static-libgcc
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
-$as_echo "$libc_cv_gcc_static_libgcc" >&6; }
-
-
 # Extract the first word of "bash", so it can be a program name with args.
 set dummy bash; ac_word=$2
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
index e2112f3c54f9cc3aa6149e6f621be6d1c773c9a2..047c6322a3dad31d53799cb7149723d984d3aaf5 100644 (file)
@@ -1065,14 +1065,6 @@ AC_MSG_ERROR([
 *** and run configure again.])
 fi
 
-AC_CACHE_CHECK(whether GCC supports -static-libgcc, libc_cv_gcc_static_libgcc, [dnl
-if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
-  libc_cv_gcc_static_libgcc=
-else
-  libc_cv_gcc_static_libgcc=-static-libgcc
-fi])
-AC_SUBST(libc_cv_gcc_static_libgcc)
-
 AC_PATH_PROG(BASH_SHELL, bash, no)
 
 AC_PATH_PROG(PERL, perl, no)