Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <17B78BDF120BD411B70100500422FC6309E404@IIS000> From: Bernard Dautrevaux To: "'J. Henning Schwentner'" , cygwin AT cygwin DOT com Subject: RE: Compiling apps to Mingw32 with cygwin Date: Mon, 7 Jan 2002 15:15:27 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: J. Henning Schwentner [mailto:hschwentner AT yahoo DOT com] > Sent: Sunday, January 06, 2002 2:57 PM > To: cygwin AT cygwin DOT com > Subject: Re: Compiling apps to Mingw32 with cygwin > > > Thanks for your quick help, this works nice! > > But, it is a bit difficult. I think ideally configure should detect > --host=mingw32 --build=cygwin and in this case should add > --mno-cygwin to > CFLAGS and CPPFLAGS (and do something to fix libtool). > > I am not sure if this is a bit off topic, maybe this sould be > posted to the > autoconf list. In fact if you do ./configure --host=i386-pc-mingw32 The autoconf shoudl automagically select a cross compiler for you, if ever it finds one named '$host-gcc' in your path. So if you put Jon's script in /usr/bin but name it 'i386-pc-mingw32-gcc', autoconf should get it automatically. WARNING: I've not time to test it right, so I don't remember for sure if autoconf will try '$host-gcc' or '$host_alias-gcc' where $host_alias is what you pass as a --host argument and $host is the canonicalised host name (result of config.sub $host_alias). HTH Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingenierie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/