[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch to HEAD to identify GNU ld
From: |
Albert Chin |
Subject: |
Patch to HEAD to identify GNU ld |
Date: |
Wed, 25 Dec 2002 00:52:20 -0600 |
User-agent: |
Mutt/1.4i |
Duplicate the method used earlier to properly identify GNU ld. No need
to use two methods. Besides, this one works better.
lt_cv_path_LD="$ac_dir/$ac_prog"
# Check to see if the program is GNU ld. I'd rather use --version,
# but apparently some GNU ld's only accept -v.
# Break only if it was the GNU/non-GNU ld that we prefer.
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
*GNU* | *'with BFD'*)
test "$with_gnu_ld" != no && break
;;
*)
test "$with_gnu_ld" != yes && break
;;
esac
--
albert chin (address@hidden)
-- snip snip
2002-12-25 Albert Chin-A-Young <address@hidden>
* libtool.m4: Sync methods used to detect GNU ld.
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.282
diff -u -3 -p -r1.282 libtool.m4
--- libtool.m4 21 Dec 2002 01:07:54 -0000 1.282
+++ libtool.m4 25 Dec 2002 03:58:08 -0000
@@ -1933,11 +1945,14 @@ AC_DEFUN([AC_PROG_LD_GNU],
[AC_REQUIRE([AC_PROG_EGREP])dnl
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
-if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
+case `"$LD" -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
lt_cv_prog_gnu_ld=yes
-else
+ ;;
+*)
lt_cv_prog_gnu_ld=no
-fi])
+ ;;
+esac])
with_gnu_ld=$lt_cv_prog_gnu_ld
])# AC_PROG_LD_GNU
- Patch to HEAD to identify GNU ld,
Albert Chin <=