libtool: bug in AC_PROG_LD

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Tue Jun 16 08:36:00 GMT 2009


Chuck,

There's a bug in LT_PATH_LD (AC_PROG_LD) when called prior to LT_INIT 
(AC_PROG_LIBTOOL):

checking for ld used by gcc... 
/usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../i686-pc-cygwin/bin/ld: no 
input files
./configure: line 3955: : command not found

Yet this does not occur when the same macro is run by LT_INIT.

Here's the offending hunk:

       # Canonicalize the pathname of ld
       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
       done

The problem is that $ECHO hasn't been defined yet.  This is done by 
_LT_PROG_ECHO_BACKSLASH, which is called at the beginning of LT_INIT, 
but isn't an explicit requirement of LT_PATH_LD, which may be called on 
its own.  (AFAICS, all other macros which use $ECHO are libtool-internal 
and would only be called after LT_INIT.)

Patch attached.


Yaakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.2.7a-fix-standalone-AC_PROG_LD.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090616/6709c1dd/attachment.bin>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list