]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Jun 2006 07:19:00 +0000 (07:19 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Jun 2006 07:19:00 +0000 (07:19 +0000)
--as-needed option if available.

m4/ChangeLog
m4/lib-ignore.m4

index 2fc9a180bb92cd1f4725b53cd0b91e2033bc63bf..8ad70a2ee69fa69d1f400e4221b2b16b9dabd34d 100644 (file)
@@ -1,3 +1,9 @@
+2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
+       --as-needed option if available.  Problem reported by Albert Chin in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
+
 2006-06-18  Jim Meyering  <jim@meyering.net>
 
        Test for a bug that causes glibc's getcwd to suffer a failed assertion.
index 348f6f44ae073ea031268caf0f0e81f6baa9ffd3..deaaee8e66131cd28912263ffddf4e1baaf7d457 100644 (file)
@@ -15,7 +15,12 @@ AC_DEFUN([gl_IGNORE_UNUSED_LIBRARIES],
      gl_saved_ldflags=$LDFLAGS
      # Use long option sequences like '-z ignore' to test for the feature,
      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
-     for gl_flags in '-Wl,-z,ignore' '-z ignore'; do
+     for gl_flags in \
+       '-Wl,--as-needed' \
+       '-Wl,-z,ignore' \
+       '--as-needed' \
+       '-z ignore'
+     do
        LDFLAGS="$gl_flags $LDFLAGS"
        AC_LINK_IFELSE([AC_LANG_PROGRAM()],
         [gl_cv_ignore_unused_libraries=$gl_flags])