we have a couple of problems wrt. cross compilation to w32 in 2.2.
When I cross-compile from GNU/Linux to MinGW using Debian's mingw32
packages (i586-mingw32msvc-gcc etc.), then link mode already
requires executing a host program; for example:
cd tests/demo
/bin/sh -x ./libtool --tag=CC --mode=link i586-mingw32msvc-gcc -g
-O2 -export-dynamic -dlpreopen libhello.la -L/usr/i586-mingw32msvc/
lib -o helldl.exe dlmain.o
[...]
+ ./helldl.exe --lt-dump-script
Wine exited with a successful status
+ exit 0
This means that building will fail on systems without a simulator.
The other problem I've stumbled over so far is this one: the
*_ltshwrapper file has DOS line endings. This causes 'make install'
to fail, because the native /bin/sh cannot parse the script:
/bin/sh ./libtool --mode=install /usr/bin/install -c 'hell.exe' '/
home/ralf/download/cvs/libtool/HEAD/build-mingw/_inst/bin/hell.exe'
: command not foundapper: line 2:
: command not foundapper: line 11:
: command not foundapper: line 16:
./.libs/hell_ltshwrapper: line 26: syntax error near unexpected
token `newline'
./.libs/hell_ltshwrapper: line 26: ` case `(set -o) 2>/dev/null` in
*posix*) se' -o posix;; esac
libtool: install: invalid libtool wrapper script `./.libs/
hell_ltshwrapper'
Does anybody see easy ways out?