logo       

Check for ar (libtool bug): msg#00124

gnu.libtool.general

Subject: Check for ar (libtool bug)

Hi,

libtool does not explicitly check for 'ar'. If no other Autoconf
command checks for 'ar' before AC_PROG_LIBTOOL is processed, then
libtool uses AR=ar which fails when cross compiling. Here is a
patch against libtool CVS together with a ChangeLog entry.


2003-02-20 Ralph Schleicher <rs@xxxxxxxxxxxxxxxxxxx>

* libtool.m4 (AC_LIBTOOL_SETUP): Check for ar.


diff -u libtool-20030219/libtool.m4.orig libtool-20030219/libtool.m4
--- libtool-20030219/libtool.m4.orig Tue Feb 18 18:12:39 2003
+++ libtool-20030219/libtool.m4 Thu Feb 20 16:27:55 2003
@@ -159,6 +159,7 @@
ofile="$default_ofile"
with_gnu_ld="$lt_cv_prog_gnu_ld"

+AC_CHECK_TOOL(AR, ar, false)
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(STRIP, strip, :)


--
Ralph


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise