Craig Lanning wrote:
Craig Lanning writes:
> I thought about using __MINGW32__, but I was trying not to restrict
> the fix to just mingw32. Apparently, I ended up being too general.
> This looks like an acceptable alternative.
It's not as acceptable as I thought. I updated from cvs yesterday (I
was out of the office last week) and rebuilt xemacs. It still created
the link. After a little investigation, I realized that the makefile
is being constructed by using 'gcc -E'. This means that __CYGWIN32__
is defined, not __MINGW32__. It needs to be using 'gcc -mno-cygwin
-E' instead of 'gcc -E'.
To build a non-Cygwin version with Cygwin's gcc, I suspect that you
will need to use something like:
./configure --target=i386-pc-mingw32 ...
or
CC='gcc -mno-cygwin' ./configure ...
or
CC='gcc -b i386-pc-mingw32' ./configure ...
I haven't checked if the above work with Cygwin, but (IMHO) they
probably should.
I can't see any way that configure can automatiacally deduce that you
wish to perform a cross-compilation (which is basically what building
for an i386-pc-mingw32 target on an i386-pc-cygwin32 platform amounts
to).
--
Glynn Clements <glynn(a)sensei.co.uk>