"Mark D. Baushke" <[EMAIL PROTECTED]> writes:

> I know that gcc-2.7.2.1/gcc.c supports both -Wl and -Xlinker.

Thanks for checking that.  That's old enough for me.  I installed
this, in both gnulib and coreutils:


2006-01-20  Paul Eggert  <[EMAIL PROTECTED]>

        * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
        rather than -Xlinker -z -Xlinker ignore, as it's more portable.
        Suggested by Bruno Haible.

--- lib-ignore.m4       17 Jan 2006 07:23:20 -0000      1.2
+++ lib-ignore.m4       21 Jan 2006 08:01:53 -0000      1.3
@@ -15,16 +15,10 @@ 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 '-Xlinker -z -Xlinker ignore' '-z ignore'; do
+     for gl_flags in '-Wl,-z,ignore' '-z ignore'; do
        LDFLAGS="$gl_flags $LDFLAGS"
        AC_LINK_IFELSE([AC_LANG_PROGRAM()],
-        [case $gl_flags in
-           '-Xlinker -z -Xlinker ignore')
-             # Shorten this ugly thing, for prettier 'make' output.
-              gl_cv_ignore_unused_libraries='-Xlinker -zignore';;
-           *)
-             gl_cv_ignore_unused_libraries=$gl_flags;;
-          esac])
+        [gl_cv_ignore_unused_libraries=$gl_flags])
        LDFLAGS=$gl_saved_ldflags
        test "$gl_cv_ignore_unused_libraries" != none && break
      done])


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to