summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xltconfig3
-rw-r--r--ltmain.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/ltconfig b/ltconfig
index c4a16f77012..cc52d4b824f 100755
--- a/ltconfig
+++ b/ltconfig
@@ -2877,6 +2877,9 @@ DLLTOOL="$DLLTOOL"
# Used on cygwin: object dumper.
OBJDUMP="$OBJDUMP"
+# compatibility with ancient libtool :)
+SED=sed
+
# Used on cygwin: assembler.
AS="$AS"
diff --git a/ltmain.sh b/ltmain.sh
index 8bf1b20bc85..953f6e71761 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -132,7 +132,7 @@ win32_libid () {
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;};}'`
+ $SED -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
if test "X$win32_nmres" = "Ximport" ; then
win32_libid_type="x86 archive import"
else