bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cross compilation to w32


From: Ralf Wildenhues
Subject: cross compilation to w32
Date: Sat, 8 Mar 2008 13:03:35 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hello,

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?

Verbose old suite log and new suite testsuite.log attached, bzip2
(tests run with CVS HEAD plus a couple of pending patches).

Thanks,
Ralf

Attachment: checklog1.bz2
Description: Text document

Attachment: testsuite.log.bz2
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]