* Vincent Torri wrote on Sun, Oct 05, 2008 at 08:00:15PM CEST: > >> If with those settings, things still fail, you should surround the >> func_win32_libid code in your libtool script with 'set -x', 'set +x' >> and look at the commands called, when 'libtool --mode=link' is run. >> Call them manually and inspect their output. The comments in the >> function explain what is expected. > > I have run manually the commands of func_win32_libid():
> $OBJDUMP -f libws2.a | sed -e '10q' > > In archive /home/torri/local/opt/mingw32ce/arm-mingw32ce/lib/libws2.a: > > duewbt.o: file format pe-arm-wince-little > architecture: armv4, flags 0x00000038: > HAS_DEBUG, HAS_SYMS, HAS_LOCALS > start address 0x00000000 > > > duewbh.o: file format pe-arm-wince-little > architecture: armv4, flags 0x00000039: > > But grep is used to check "i386", and not arm-wince-little. Please post the output of /home/torri/local/opt/mingw32ce/bin/arm-mingw32ce-nm -B -f posix -A \ /home/torri/local/opt/mingw32ce/arm-mingw32ce/lib/libws2.a | sed 100q and try the patch below. Now we need someone who knows about wince to tell us whether this is the right thing to do. Thanks, Ralf 2008-10-05 Ralf Wildenhues <[EMAIL PROTECTED]> Fix import library detection for WinCE. * libltdl/config/ltmain.m4sh (func_win32_libid): Work for pe-arm-wince import libraries. Report by Vincent Torri. diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 1a4a0ff..8300849 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -2167,7 +2167,7 @@ func_win32_libid () ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-arm-wince)' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool