[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module lib-ignore; new section build_lib in MODULES.html

From: Paul Eggert
Subject: Re: new module lib-ignore; new section build_lib in MODULES.html
Date: Sat, 21 Jan 2006 00:02:50 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

"Mark D. Baushke" <address@hidden> writes:

> I know that gcc- 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  <address@hidden>

        * 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],
      # 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"
-        [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])
        test "$gl_cv_ignore_unused_libraries" != none && break

reply via email to

[Prev in Thread] Current Thread [Next in Thread]