This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Using the new cross compilation system - and a request for help
- From: Alexander Gottwald <Alexander dot Gottwald at informatik dot tu-chemnitz dot de>
- Cc: <cygwin-xfree at cygwin dot com>
- Date: Thu, 11 Jul 2002 22:57:21 +0200 (MEST)
- Subject: Re: Using the new cross compilation system - and a request for help
On Thu, 11 Jul 2002, Harold L Hunt wrote:
> My imakedep_cpp.h is attached. Does it look like yours?
>
> I am guessing that i686 is defined because I'm building on a Pentium III???
> Other than that I wouldn't have a clue how it got defined. It must just be
> something that Mandrake is doing.
The i686 is never defined in imakemdep_cpp.h. So this must be a default
define from cpp.
$ gcc -dM - -E </dev/null
...
#define i386 1
#define i686 1
...
$ i686-pc-cygwin32-gcc -dM - -E </dev/null
...
#define i386 1
...
I'm sure you also have a #define i686 for the cygwin-gcc
And please check config/cf/Imake.cf
#ifdef linux
...
XCOMM Keep cpp from replacing path elements containing i486/i586/i686
...
# ifdef i686
# ifndef i386Architecture
# define i386Architecture
# endif
# undef i686
# endif
...
So this seems to be normal. For cygwin, there is
#ifdef __CYGWIN__
#define MacroIncludeFile <cygwin.cf>
#define MacroFile cygwin.cf
#define cygwinArchitecture
#define i386Architecture
#undef i386
#undef __i386__
#undef _X86_
#undef __CYGWIN__
#endif /* CYGWIN */
We just have to add #undef i686, #undef i486, #undef i586 here
bye
ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723