autoconf
[Top][All Lists]
Advanced

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

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF


From: Eric Blake
Subject: Re: cygwin -mno-cygwin AC_CHECK_SIZEOF
Date: Fri, 01 Dec 2006 07:06:06 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bob Rossi on 12/1/2006 6:57 AM:
> CPPFLAGS="-mno-cygwin" CFLAGS="-mno-cygwin -O0" 
> ./configure --build=mingw32 --enable-experimental-libtool 

EVIL.  --build is for the platform you are BUILDING on (ie. cygwin), NOT
the platform you are compiling for (ie. using -mno-cygwin says you are
cross-compiling for mingw).  By lying to configure, you are asking for
problems.  *Don't do that.*  Also, setting environment variables prior to
./configure is deprecated, because rerunning ./config.status won't
remember that you set those variables.  And since -mno-cygwin is changing
from a regular to a cross-compiler, you really should be setting it in CC
rather than CFLAGS, so that the change happens everywhere.

So, if you INSIST on using the cygwin environment to cross-compile mingw
binaries, you should use:

./configure --build=i686-pc-cygwin --host=i686-pc-mingw32 \
  CC='gcc -mno-cygwin' CXX='g++ -mno-cygwin'

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFcDbN84KuGfSFAYARAmngAJY2aNlk+pPKyf4ZNERiNqSkmuhLAJ0QYWxr
bGXIe/kNquBEv98WZwubuw==
=dymQ
-----END PGP SIGNATURE-----




reply via email to

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