From: Paul Eggert Date: Sat, 21 Jan 2006 07:59:22 +0000 (+0000) Subject: (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore X-Git-Tag: v6.0~853 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a85d9f93fee90dc0d1110579ccd64a4f64e2e42;p=thirdparty%2Fcoreutils.git (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore rather than -Xlinker -z -Xlinker ignore, as it's more portable. --- 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])