[egcs-1.0] missing i386 breaks xmkmf on RedHat 5.0

Ard Kuijpers ard@wfw.wtb.tue.nl
Mon Dec 8 01:42:00 GMT 1997


Hello,

I've been trying to build some X11 programs with egcs-1.0 on RedHat
5.0. The Makefiles are generated with xmkmf which assumes that the
macro 'i386' is defined. This is the case when the preprocessor is
called from gcc, but xmkmf (or rather imake) calls cpp directly. Then 
only the macros 'linux' '__ELF__' and 'unix' are defined:

% touch foo.h; /lib/cpp -dM foo.h
#define linux 1 
#define __ELF__ 1 
#define unix 1

Is this intentional? I understand that if it is, maybe this problem
should be solved by the RedHat/Linux people. What's your opinion?

Regards,

Ard
****************************************************************************
Ard Kuijpers                                       
Faculty of Mechanical Engineering                  e-mail:ard@wfw.wtb.tue.nl
Eindhoven University of Technology                     phone: +31 40 2472811
P.O. Box 513,  5600 MB Eindhoven,  The Netherlands       fax: +31 40 2461418
****************************************************************************
"...Do what makes your heart hurt less..." _follow_your_heart_  THE PALADINS 
****************************************************************************



More information about the Gcc mailing list