delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <457036CE.4060004@byu.net> |
Date: | Fri, 01 Dec 2006 07:06:06 -0700 |
From: | Eric Blake <ebb9 AT byu DOT net> |
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 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com, autoconf AT gnu DOT org |
Subject: | Re: cygwin -mno-cygwin AC_CHECK_SIZEOF |
References: | <20061201023212 DOT GH19404 AT cox DOT net> <456FA8DD DOT 3030409 AT byu DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0611302348180 DOT 17676 AT access1 DOT cims DOT nyu DOT edu> <20061201135735 DOT GM19404 AT cox DOT net> |
In-Reply-To: | <20061201135735.GM19404@cox.net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
-----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 AT byu DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |