Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: axp-list@redhat.com
Subject: Re: follow-up on Compiling X on Alpha
Date: Mon, 25 Jan 1999 23:06:23 +0100 (MET)	[thread overview]
Message-ID: <Pine.GSO.3.96.990125224434.15222E-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <19990125204218.11356.qmail@hotmail.com>

On Mon, 25 Jan 1999, Designer 7 wrote:

> > See what definitions `/lib/cpp -dM /dev/null' dumps.  X uses /lib/cpp 
> as
> >a C preprocessor.
> 
> ok.. so this is what I got:
> #define linux 1
> #define _LONGLONG 1
> #define __alpha__ 1
> #define __ELF__ 1
> #define unix 1
> 
> is this it? or am I missing anything? is __alpha suppose to show up here 
> too?

 The C preprocessor program has an internal list of predefines.  You
probably has your `lib/cpp' set up as a symlink to the real program
located under '/usr/lib/gcc-lib' directory tree.  This is not the best
available solution as the internal list of `cpp' is fixed -- it cannot be
changed without recompilation.  A much better solution is to use `gcc -E'
which also invokes the C preprocessor but as this one uses the `gcc'
driver, the 'specs' file is being taken into account where additional
predefines as well as other parameters may be set (the file is plain
text). 

 Unfortunately, one may not just replace the `/lib/cpp' symlink with a
shell script which execs `gcc -E' as the command line syntax of these two
is slightly different.  There was an example `/lib/cpp' replacemet script
posted on one of egcs-related mailing lists some time ago which solved
some of these compatibility issues.  You may check that one -- I use it
for a few months now and I see no troubles.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


  reply	other threads:[~1999-01-25 22:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-25 20:42 follow-up on Compiling X on Alpha Designer 7
1999-01-25 22:06 ` Maciej W. Rozycki [this message]
1999-01-26  0:57 ` Michal Jaegermann
1999-01-26 13:41 ` Christopher C Chimelis
1999-01-26 16:56   ` Michal Jaegermann
  -- strict thread matches above, loose matches on Subject: below --
1999-01-27  7:55 Designer 7
1999-01-26  1:12 Designer 7
1999-01-23 20:26 Designer 7
1999-01-25 18:42 ` Maciej W. Rozycki
1999-01-23 10:38 Designer 7
1999-01-23 19:15 ` Michal Jaegermann
1999-01-23 10:08 Designer 7
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox