RE: Compiling apps to Mingw32 with cygwin

2002-01-14 Thread Jon Leichter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of Earnie Boyd > Sent: Monday, January 14, 2002 5:43 AM > To: Robert Collins > Cc: Jon Leichter; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with c

Re: Compiling apps to Mingw32 with cygwin

2002-01-14 Thread Earnie Boyd
Jon Leichter wrote: > > > > > Using Robert's invocation WOULD put configure in cross-compile mode. > > But > > > since using Cygwin GCC to generate MinGW is ALMOST like a > > cross-compile, it > > > will work out ok. In fact, one compelling reason to use Robert's > > method is > > > because one

Re: Compiling apps to Mingw32 with cygwin

2002-01-14 Thread Earnie Boyd
Robert Collins wrote: > > - Original Message - > From: "Earnie Boyd" <[EMAIL PROTECTED]> > > 1) `gcc -mno-cygwin' is not a cross compile. > > 2) it is possible to emulate a cross build system using a scripted > `gcc > > -mno-cygwin' and symlinks. > > 3) `gcc -mno-cygwin' switches the bu

Re: Compiling apps to Mingw32 with cygwin

2002-01-13 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > Grrr... This makes one start believing that Earnie's method is more correct. > I suppose the right answer to this question is: use whichever method seems > to work best for the project that you're working on. If they both wor

RE: Compiling apps to Mingw32 with cygwin

2002-01-13 Thread Jon Leichter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of Robert Collins > Sent: Sunday, January 13, 2002 12:31 PM > To: Jon Leichter; Earnie Boyd > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Compiling apps t

Re: Compiling apps to Mingw32 with cygwin

2002-01-13 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > First off... thanks again to both Robert and Earnie for taking part in this > discussion. I appreciate it a lot. > > Recapping once again... > > Robert says to use: > > $ ./configure --host=i686-pc-mingw32 --build=i686-pc-

RE: Compiling apps to Mingw32 with cygwin

2002-01-13 Thread Jon Leichter
lto:[EMAIL PROTECTED]]On Behalf > Of Robert Collins > Sent: Saturday, January 12, 2002 3:28 PM > To: Earnie Boyd; Jon Leichter > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > - Original Message - > From: "Earnie

Re: Compiling apps to Mingw32 with cygwin

2002-01-12 Thread Robert Collins
- Original Message - From: "Earnie Boyd" <[EMAIL PROTECTED]> > 1) `gcc -mno-cygwin' is not a cross compile. > 2) it is possible to emulate a cross build system using a scripted `gcc > -mno-cygwin' and symlinks. > 3) `gcc -mno-cygwin' switches the build environment from Cygwin to > MinGW.

Re: Compiling apps to Mingw32 with cygwin

2002-01-12 Thread Robert Collins
=== - Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > > Earnie and Robert, > > I'm a bit confused when I consider the commentary that you both have > contributed on this topic. Here's what I have assessed. You two guys correct > me where I'm wrong. > > === > > Robert has im

Re: Compiling apps to Mingw32 with cygwin

2002-01-12 Thread Earnie Boyd
Jon Leichter wrote: > > Earnie. Your comments seem to contradict each other. In your last email, it > seems you are implying that "gcc -mno-cygwin" is NOT a cross-compile. And > then you went on to explain how I could safely use the switches if I set > symlinks to emulate a cross-compile. Which p

RE: Compiling apps to Mingw32 with cygwin

2002-01-11 Thread Jon Leichter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of Earnie Boyd > Sent: Friday, January 11, 2002 4:01 AM > To: Jon Leichter > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin &

Re: Compiling apps to Mingw32 with cygwin

2002-01-11 Thread Robert Collins
=== - Original Message - From: "Earnie Boyd" <[EMAIL PROTECTED]> > > This rule is changed for 2.50 and greater. Build no longer takes on the > value of host and you're warned about this when specifying --host > without specifying --build. IIRC, if you specify build without host > then h

Re: Compiling apps to Mingw32 with cygwin

2002-01-11 Thread Earnie Boyd
> Subject: Re: Compiling apps to Mingw32 with cygwin > Date: Fri, 11 Jan 2002 13:25:17 +1100 > From: "Robert Collins" <[EMAIL PROTECTED]> > To: "Jon Leichter" <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > > - Original Message -

Re: Compiling apps to Mingw32 with cygwin

2002-01-11 Thread Earnie Boyd
> Subject: RE: Compiling apps to Mingw32 with cygwin > Date: Thu, 10 Jan 2002 17:20:42 -0800 > From: "Jon Leichter" <[EMAIL PROTECTED]> > To: "Robert Collins" <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > > Ok. I need to return to a

Re: Compiling apps to Mingw32 with cygwin

2002-01-11 Thread Earnie Boyd
Jon Leichter wrote: > > > -Original Message- > > From: Earnie Boyd [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 10, 2002 2:31 PM > > To: Jon Leichter > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: Re: Compiling apps to Ming

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
> -Original Message- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 6:25 PM > To: Jon Leichter > Cc: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > - Original Message - > From: "

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > > See above why it doesn't. mingw != cygwin :}. > > If 'build' WERE to be tested automatically, independent to 'host', it would > come up with 'i686-pc-cygwin'. Thus, we'd effectively end up with the same > line you specified

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
> -Original Message- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 6:16 PM > To: Jon Leichter > Cc: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > > - Original Message - > From: &q

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > Thus... returning to the ORIGINAL topic of this thread... I had recommended > the following to the OP: > > $ env CC=mgcc ./configure --host=i686-pc-mingw32 > > My new understanding of switches gives me new perspective. 'buil

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
;, but it WILL work. This whole thread went off on a tangent suggesting that my solution was wrong. So tell me. If my solution works more often than the "proper" one, how is it wrong? Jon > -Original Message- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Se

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Christopher Faylor" <[EMAIL PROTECTED]> > >Ouchies. I agree - yet another reason for cygwin ports to be updated > >by the maintainer :}. package/port ^^^ > If I am reading this correctly, this is not really a cygwin issue. It's > a cros

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Christopher Faylor
On Fri, Jan 11, 2002 at 12:52:01PM +1100, Robert Collins wrote: >- Original Message - >From: "Jon Leichter" <[EMAIL PROTECTED]> > >>AC_CHECK_TOOL checks for tools with a ${host} prefix. AC_CHECK_PROG >>does not. >> >>In my opinion, this serves as another example that one cannot count on >

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > AC_CHECK_TOOL checks for tools with a ${host} prefix. AC_CHECK_PROG does > not. > > In my opinion, this serves as another example that one cannot count on a > configure script being up-to-date. Ouchies. I agree - yet another

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
> -Original Message- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 5:45 PM > To: Jon Leichter > Cc: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > - Original Message - > From: "

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > Sorry... I left that out. Yes, I do have an accessible i686-pc-mingw32-gcc, > and I am looking at the configure script. It just searches for gcc. It > doesn't bother to look for the prefixed tool. Are you sure? Here's the out

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
> -Original Message- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 5:27 PM > To: Jon Leichter > Cc: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > > - Original Message - > From: &q

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> To: "Robert Collins" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 11, 2002 12:20 PM Subject: RE: Compiling apps to Mingw32 with cygwin > Ok. I need to re

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
Ok. I need to return to asking some questions with my new understanding of --build, --host, and --target (which I'm incredibly grateful for and happy about). I have returned to working with OpenLDAP. The configure script is generated with autconf-2.13.1. It uses AC_CANONICAL_SYSTEM, which you say

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Charles Wilson
Jon Leichter wrote: > It's true that I don't usually patch the script myself and send it back. In > some cases, there isn't any organization to send the patches back to, e.g. > GDBM. This is not an unsubstaniated statement. I sent patches to GDBM years > ago, and nothing ever came of it. What

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
=== - Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > I still don't understand why I'd want to symlink the binutils binaries. I > WANT the Cygwin binutils. They don't generate object code; they operate on > it. The Cygwin binutils do a fine job (as Cygwin binaries) operating

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
PM > To: Jon Leichter > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > > - Original Message - > From: "Jon Leichter" <[EMAIL PROTECTED]> > > > > No. Specify --host. The meaning is clearly docume

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
> -Original Message- > From: Earnie Boyd [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 2:31 PM > To: Jon Leichter > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > Using `gcc -mno-cygwin' is sw

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
=== - Original Message - From: "Earnie Boyd" <[EMAIL PROTECTED]> > My statements are based on the standard. For those packages conforming > to AC_CAN0NICAL_SYSTEM my statements will make a difference. I'm saying > you should just get used to always doing it that way so that you never >

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Earnie Boyd
Jon Leichter wrote: > > Earnie Boyd wrote: > > 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 config

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> > > No. Specify --host. The meaning is clearly documented in the autoconf > > documentation. > > For clarity: > > build - what OS the compilation is running on.. > > host - what OS the binaries created should run on. > > targe

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of Robert Collins > Sent: Thursday, January 10, 2002 1:44 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > Autoconf

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Charles Wilson
Robert Collins wrote: > No. Specify --host. The meaning is clearly documented in the autoconf > documentation. > For clarity: > build - what OS the compilation is running on.. > host - what OS the binaries created should run on. > target - what OS the binaries created should target their output

Re: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Robert Collins
- Original Message - From: "Jon Leichter" <[EMAIL PROTECTED]> I hope I don't repeat anything from this thread, I've only been scanning it lightly. .. > obvious to me that unless you're building a project with a configure script > built by an up-to-date version of autoconf, none of what y

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Jon Leichter
Earnie Boyd wrote: > 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 appropria

RE: Compiling apps to Mingw32 with cygwin

2002-01-10 Thread Bernard Dautrevaux
> -Original Message- > From: Earnie Boyd [mailto:[EMAIL PROTECTED]] > 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

Re: Compiling apps to Mingw32 with cygwin

2002-01-09 Thread Earnie Boyd
> Subject: Re: Compiling apps to Mingw32 with cygwin > Date: Wed, 9 Jan 2002 18:11:16 +0100 > From: "J. Henning Schwentner" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > > Am Montag, 7. Januar 2002 17:49 schrieben Sie: > > Jon Leichter wrote: > &

Re: Compiling apps to Mingw32 with cygwin

2002-01-09 Thread J. Henning Schwentner
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

Re: Compiling apps to Mingw32 with cygwin

2002-01-07 Thread J. Henning Schwentner
Dear Earnie, I do not get it with the --build switch. Am I not building on i686-pc-cygwin? Is it i368-pc-mingw because I use the mingw-headers? But I use the cygwin-compiler. Sorry, but I am confused a bit ... > Your wrapper script is a good idea but has the wrong name as has been > pointed

Re: Compiling apps to Mingw32 with cygwin

2002-01-07 Thread Earnie Boyd
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

RE: Compiling apps to Mingw32 with cygwin

2002-01-07 Thread Jon Leichter
for GNU Libtool, as I have mentioned. I use a wrapper script: CC=mgcc. What do you think of this Earnie? Jon > -Original Message- > From: Earnie Boyd [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 6:29 AM > To: CU List > Cc: Jon Leichter; J. Henning Schwentn

Re: Compiling apps to Mingw32 with cygwin

2002-01-07 Thread Earnie Boyd
> Subject: RE: Compiling apps to Mingw32 with cygwin > Date: Sat, 5 Jan 2002 11:35:14 -0800 > From: "Jon Leichter" <[EMAIL PROTECTED]> > Reply-To: "Jon Leichter" <[EMAIL PROTECTED]> > To: "J. Henning Schwentner" <[EMAIL PROTECTED]&

RE: Compiling apps to Mingw32 with cygwin

2002-01-07 Thread Bernard Dautrevaux
> -Original Message- > From: J. Henning Schwentner [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 06, 2002 2:57 PM > To: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > > Thanks for your quick help, this works nice! > > But,

Re: Compiling apps to Mingw32 with cygwin

2002-01-06 Thread Robert Collins
- Original Message - From: "J. Henning Schwentner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 07, 2002 12:57 AM Subject: Re: Compiling apps to Mingw32 with cygwin > Thanks for your quick help, this works nice! > > But, it is a

RE: Compiling apps to Mingw32 with cygwin

2002-01-06 Thread Jon Leichter
Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of J. Henning Schwentner > Sent: Sunday, January 06, 2002 5:57 AM > To: [EMAIL PROTECTED] > Subject: Re: Compiling apps to Mingw32 with cygwin > > Thanks for your quick help, this works nice! > &g

Re: Compiling apps to Mingw32 with cygwin

2002-01-06 Thread J. Henning Schwentner
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

RE: Compiling apps to Mingw32 with cygwin

2002-01-05 Thread Jon Leichter
Hi Henning. You can use Cygwin's GCC. It's just a little more involved. Here's a short answer. When you configure, do so like this: $ env CC="gcc -mno-cygwin" ./configure --host=i386-pc-mingw32 Notice that your --host specification was a little off. The way that I have specified it is t