mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-03-01 15:25:27 +08:00
* libtool.m4: Sync methods used to detect GNU ld.
This commit is contained in:
parent
947bf98e10
commit
1391f5d2fe
@ -1,3 +1,7 @@
|
||||
2002-12-30 Albert Chin-A-Young <china@thewrittenword.com>
|
||||
|
||||
* libtool.m4: Sync methods used to detect GNU ld.
|
||||
|
||||
2002-12-20 Robert Boehne <rboehne@gnu.org>
|
||||
|
||||
* libtool.m4 (AC_LIBTOOL_COMPILER_OPTION,
|
||||
|
9
libtool.m4
vendored
9
libtool.m4
vendored
@ -1933,11 +1933,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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user