bug-libtool
[Top][All Lists]
Advanced

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

Re: cross compilation to w32


From: Gary V. Vaughan
Subject: Re: cross compilation to w32
Date: Sat, 8 Mar 2008 11:39:38 -0500

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: address@hidden
  ( '/           Read my blog: http://blog.azazil.net
  / )=         ...and my book: http://sources.redhat.com/autobook
`(_~)_




Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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