[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-libsigsegv] mingw failure
From: |
Eric Blake |
Subject: |
Re: [bug-libsigsegv] mingw failure |
Date: |
Tue, 23 Aug 2011 15:02:52 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.11 |
On 08/23/2011 02:52 PM, Sam Steingold wrote:
../configure --prefix=/cygdrive/c/sds/src/top-mingw/ CC=i686-pc-mingw32-gcc
...
libtool: link: i686-pc-mingw32-gcc -g -O2 -o cygwin1.exe cygwin1.o
Why is a mingw build trying to compile a cygwin-specific test? You
didn't call configure correctly to let it know that you intended to do
cross-compilation. Try this:
./configure --prefix=/cygdrive/c/sds/src/top-mingw \
--host=i686-pc-mingw32 --build-i686-pc-mingw32
That will automatically tell configure that you are doing cross
compilation, and default to finding CC=i686-poc-mingw32-gcc without you
having to explicitly request $CC.
The only way to expect sane results when cross-compiling for mingw from
a cygwin environment is to not lie to configure about the fact that you
are cross-compiling.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org