public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: Compiling apps to Mingw32 with cygwin
@ 2002-01-07  6:24 Bernard Dautrevaux
  0 siblings, 0 replies; 52+ messages in thread
From: Bernard Dautrevaux @ 2002-01-07  6:24 UTC (permalink / raw)
  To: 'J. Henning Schwentner', 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/

^ permalink raw reply	[flat|nested] 52+ messages in thread
[parent not found: <3C3EDCA7.C40E3CD6@yahoo.com>]
[parent not found: <3C3ED90B.F0B81A47@yahoo.com>]
* RE: Compiling apps to Mingw32 with cygwin
@ 2002-01-10  1:39 Bernard Dautrevaux
  2002-01-10 13:09 ` Jon Leichter
  0 siblings, 1 reply; 52+ messages in thread
From: Bernard Dautrevaux @ 2002-01-10  1:39 UTC (permalink / raw)
  To: 'CU List'

> -----Original Message-----
> From: Earnie Boyd [mailto:earnie_boyd@yahoo.com]
> Sent: Wednesday, January 09, 2002 8:42 PM
> To: CU List
> Subject: Re: Compiling apps to Mingw32 with cygwin
> 
> 
> > Subject: Re: Compiling apps to Mingw32 with cygwin
> > Date: Wed, 9 Jan 2002 18:11:16 +0100
> > From: "J. Henning Schwentner" <hschwentner@yahoo.com>
> > To: cygwin@cygwin.com
> > 
> > Am Montag, 7. Januar 2002 17:49 schrieben Sie:
> > > Jon Leichter wrote:
> > > > - Using CC="gcc -mno-cygwin" is good for compiling, but 
> it's bad for GNU
> > > > Libtool, as I have mentioned. I use a wrapper script: 
> CC=mgcc. What do
> > > > you think of this Earnie?
> > >
> > > Your wrapper script is a good idea but has the wrong name 
> as has been
> > > pointed out already.  It needs to be named 
> i386-pc-mingw32-gcc and a
> > > copy as mingw32-gcc so that when specifying the --host=mingw32 or
> > > --host=i386-pc-mingw32 the configure script will find it 
> appropriately.
> > > Of course to do this you also need to do the same for the binutils
> > > binaries.
> > 
> > Do the binutils also support the -mno-cygwin switch? 
> 
> I'll leave that as an exercise for you to figure out.
> 
> > Or can the
> > 386-pc-mingw32-<binutilname> files be simple links to the 
> cygwin versions?
> > 
> 
> Yes, simply symlink will do.

So the simlink is not needed at all: if autotools don't find, say
"i386-pc-mingw32-ar", they'll look for plain "ar" and use it. So no need to
mind with these symlinks. Just creating the script/exec i386-pc-mingw32-gcc
will be enough (and a i386-pc-mingw32-g++ link to it when we get a mingw32
libstdc++ of course :)).

Regards

--------------------------------------------
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/

^ permalink raw reply	[flat|nested] 52+ messages in thread
[parent not found: <3C3C999C.E7DBD5CC@yahoo.com>]
[parent not found: <3C391A0A.758D073@yahoo.com>]
[parent not found: <200201061357.IAA27856@zealous.cnchost.com>]
[parent not found: <200201051541.KAA10021@irresistable.cnchost.com>]
* Compiling apps to Mingw32 with cygwin
@ 2002-01-05  7:40 J. Henning Schwentner
  0 siblings, 0 replies; 52+ messages in thread
From: J. Henning Schwentner @ 2002-01-05  7:40 UTC (permalink / raw)
  To: cygwin

Hi,

I am trying to compile SDL-1.2.3 for mingw32 with cygwin-1.3.6.
I use the following steps:
	$ ./configure --host=pc-i386-mingw32
	# make

It compiles without errors, but the outcoming SDL.dll has references to 
cygwin1.dll not to MSVCRT.dll.

I have also installed Mingw32-1.1. Do I have to use the gcc from the 
mingw-distribution or can I use the cygwin-gcc? If I have to use the 
mingw-gcc, how can I tell this to configure?

Thanks in advance!

Henning

P.S: Please CC me, I am not on the list

-- 
J. Henning Schwentner
Lanthan Software KG

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
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/

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2002-01-14 18:27 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-07  6:24 Compiling apps to Mingw32 with cygwin Bernard Dautrevaux
     [not found] <3C3EDCA7.C40E3CD6@yahoo.com>
2002-01-11  5:12 ` Earnie Boyd
2002-01-11  5:33   ` Robert Collins
     [not found] <3C3ED90B.F0B81A47@yahoo.com>
2002-01-11  4:43 ` Earnie Boyd
  -- strict thread matches above, loose matches on Subject: below --
2002-01-10  1:39 Bernard Dautrevaux
2002-01-10 13:09 ` Jon Leichter
2002-01-10 13:43   ` Robert Collins
2002-01-10 14:05     ` Charles Wilson
2002-01-10 14:06     ` Jon Leichter
2002-01-10 14:29       ` Robert Collins
2002-01-10 16:25         ` Jon Leichter
2002-01-10 14:31   ` Earnie Boyd
2002-01-10 14:40     ` Robert Collins
2002-01-10 16:18     ` Jon Leichter
2002-01-10 16:28       ` Robert Collins
2002-01-10 17:19         ` Jon Leichter
2002-01-10 17:27           ` Robert Collins
2002-01-10 17:31             ` Jon Leichter
2002-01-10 17:44               ` Robert Collins
2002-01-10 17:50                 ` Jon Leichter
2002-01-10 17:52                   ` Robert Collins
2002-01-10 17:58                     ` Christopher Faylor
2002-01-10 17:59                       ` Robert Collins
2002-01-10 18:11                     ` Jon Leichter
2002-01-10 18:16                       ` Robert Collins
2002-01-10 18:23                         ` Jon Leichter
2002-01-10 18:25                           ` Robert Collins
2002-01-10 18:28                             ` Jon Leichter
2002-01-10 16:34       ` Charles Wilson
2002-01-11  4:11       ` Earnie Boyd
2002-01-11 10:35         ` Jon Leichter
2002-01-12 12:51           ` Earnie Boyd
2002-01-12 15:29             ` Robert Collins
2002-01-13 10:44               ` Jon Leichter
2002-01-13 12:39                 ` Robert Collins
2002-01-13 20:17                   ` Jon Leichter
2002-01-14  0:53                     ` Robert Collins
2002-01-14  6:09                     ` Earnie Boyd
2002-01-14  5:51               ` Earnie Boyd
2002-01-14 10:48                 ` Jon Leichter
2002-01-12 15:27           ` Robert Collins
     [not found] <3C3C999C.E7DBD5CC@yahoo.com>
2002-01-09 11:42 ` Earnie Boyd
     [not found] <3C391A0A.758D073@yahoo.com>
2002-01-07  6:29 ` Earnie Boyd
2002-01-07  8:34   ` Jon Leichter
2002-01-07  8:49     ` Earnie Boyd
2002-01-07 11:44       ` J. Henning Schwentner
2002-01-09  9:09       ` J. Henning Schwentner
     [not found] <200201061357.IAA27856@zealous.cnchost.com>
2002-01-06  9:55 ` Jon Leichter
     [not found] <200201051541.KAA10021@irresistable.cnchost.com>
2002-01-05 11:38 ` Jon Leichter
2002-01-06  5:55   ` J. Henning Schwentner
     [not found]   ` <ITDOMAIN003sl3xbYiM0000006c@itdomain003.itdomain.net.au>
2002-01-06 13:47     ` Robert Collins
2002-01-05  7:40 J. Henning Schwentner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).