From: Charles Wilson Date: Mon, 17 Mar 2003 00:52:48 +0000 (+0000) Subject: * ltmain.in (win32_libid): use $SED, not head. X-Git-Tag: release-1-5~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eadbc5376354f9485f0e263ce253ca7a5f0a130;p=thirdparty%2Flibtool.git * ltmain.in (win32_libid): use $SED, not head. --- diff --git a/ChangeLog b/ChangeLog index fdcc3b8ca..d8c6c1eb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-03-16 Charles Wilson + + * ltmain.in (win32_libid): use $SED, not head. + 2003-03-02 Alexandre Oliva * libtool.m4 (AC_PROG_LD): Use $CC instead of GCC. diff --git a/ltmain.in b/ltmain.in index 7e8af58b3..8be9e7600 100644 --- a/ltmain.in +++ b/ltmain.in @@ -129,7 +129,7 @@ win32_libid () { win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static - if eval $OBJDUMP -f $1 | head -n 10 2>/dev/null | \ + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | \ sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;}}'`