From 79d781960a92f388a71e6e2e7b5b80538bf130d1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 21 Jan 2006 08:01:53 +0000 Subject: [PATCH] * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore rather than -Xlinker -z -Xlinker ignore, as it's more portable. --- m4/ChangeLog | 6 ++++++ m4/lib-ignore.m4 | 10 ++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 4c4cefcc44..4f134b2726 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2006-01-20 Paul Eggert + + * 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. + 2006-01-19 Simon Josefsson * socklen.m4: Look in ws2tcpip.h too, for mingw32. diff --git a/m4/lib-ignore.m4 b/m4/lib-ignore.m4 index a84ca167e4..348f6f44ae 100644 --- a/m4/lib-ignore.m4 +++ b/m4/lib-ignore.m4 @@ -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]) -- 2.30.2