This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Compiling apps to Mingw32 with cygwin


> -----Original Message-----
> From: J. Henning Schwentner [mailto:hschwentner@yahoo.com]
> Sent: Sunday, January 06, 2002 2:57 PM
> To: cygwin@cygwin.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@microprocess.com
		b.dautrevaux@usa.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]