This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin -mno-cygwin AC_CHECK_SIZEOF
-----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 ebb9@byu.net
-----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-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/