From 1eadbc5376354f9485f0e263ce253ca7a5f0a130 Mon Sep 17 00:00:00 2001 From: Charles Wilson Date: Mon, 17 Mar 2003 00:52:48 +0000 Subject: [PATCH] * ltmain.in (win32_libid): use $SED, not head. --- ChangeLog | 4 ++++ ltmain.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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;}}'` -- 2.47.2