Hallo Ralf, On 8 Mar 2008, at 07:03, Ralf Wildenhues wrote:
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?
Shouldn't the cwrapper be compiled with the host compiler? It looks as though it isn't at the moment... Cheers, Gary -- ())_. Email me: [EMAIL PROTECTED] ( '/ Read my blog: http://blog.azazil.net / )= ...and my book: http://sources.redhat.com/autobook `(_~)_
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Bug-libtool mailing list Bug-libtool@gnu.org http://lists.gnu.org/mailman/listinfo/bug-libtool