[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-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 <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],
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])
- Re: [bug-gnulib] new module lib-ignore; new section build_lib in MODULES.html, (continued)
- Re: [bug-gnulib] Re: [bug-gnulib] new module lib-ignore; new section build_lib in MODULES.html, Bruno Haible, 2006/01/12
- Re: [bug-gnulib] new module lib-ignore; new section build_lib in MODULES.html, Ralf Wildenhues, 2006/01/13
- Re: new module lib-ignore; new section build_lib in MODULES.html, Paul Eggert, 2006/01/18
- Re: new module lib-ignore; new section build_lib in MODULES.html, Ralf Wildenhues, 2006/01/18
- Re: new module lib-ignore; new section build_lib in MODULES.html, Bruno Haible, 2006/01/18
- Re: new module lib-ignore; new section build_lib in MODULES.html, Ralf Wildenhues, 2006/01/18
Re: new module lib-ignore; new section build_lib in MODULES.html, Paul Eggert, 2006/01/18