157 |
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ |
if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ |
158 |
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then |
$EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then |
159 |
win32_nmres=`eval $NM -f posix -A $1 | \ |
win32_nmres=`eval $NM -f posix -A $1 | \ |
160 |
sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` |
sed -n -e '1,100{/ I /{s,.*,import,;p;q;};}'` |
161 |
if test "X$win32_nmres" = "Ximport" ; then |
case $win32_nmres in |
162 |
win32_libid_type="x86 archive import" |
import*) win32_libid_type="x86 archive import";; |
163 |
else |
*) win32_libid_type="x86 archive static";; |
164 |
win32_libid_type="x86 archive static" |
esac |
|
fi |
|
165 |
fi |
fi |
166 |
;; |
;; |
167 |
*DLL*) |
*DLL*) |
1478 |
-l*) |
-l*) |
1479 |
if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then |
if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then |
1480 |
case $host in |
case $host in |
1481 |
*-*-cygwin* | *-*-pw32* | *-*-beos*) |
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) |
1482 |
# These systems don't actually have a C or math library (as such) |
# These systems don't actually have a C or math library (as such) |
1483 |
continue |
continue |
1484 |
;; |
;; |
1485 |
*-*-mingw* | *-*-os2*) |
*-*-os2*) |
1486 |
# These systems don't actually have a C library (as such) |
# These systems don't actually have a C library (as such) |
1487 |
test "X$arg" = "X-lc" && continue |
test "X$arg" = "X-lc" && continue |
1488 |
;; |
;; |