]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (win32_libid): use $SED, not head.
authorCharles Wilson <cwilson@ece.gatech.edu>
Mon, 17 Mar 2003 00:52:48 +0000 (00:52 +0000)
committerRobert Boehne <rboehne@gnu.org>
Mon, 17 Mar 2003 00:52:48 +0000 (00:52 +0000)
ChangeLog
ltmain.in

index fdcc3b8caddc62f12201cf0b728559248f7302b6..d8c6c1eb48f86c47541a8825d3dfe98474ff5e34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-16  Charles Wilson  <cwilson@ece.gatech.edu>
+
+       * ltmain.in (win32_libid): use $SED, not head.
+
 2003-03-02  Alexandre Oliva  <aoliva@redhat.com>
 
        * libtool.m4 (AC_PROG_LD): Use $CC instead of GCC.
index 7e8af58b33ef14e319d3f3c9503fa2510688f7ca..8be9e76005a7507932aa41fa21c92369ffe6b5d7 100644 (file)
--- 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;}}'`