[comp.windows.x] On the passing of vendor CPP flags into GNU compiler

idallen@watcgl.waterloo.edu (01/07/90)

From: "Ian! D. Allen [CGL]" <idallen>

Our gnu compiler doesn't define -Dultrix on Ultrix, and I see that various
things in R4 seemd to depend on having -Dultrix set.  I resorted to
doing this in the ultrix.cf file -- any better ideas?

    #if defined(HasGcc) && HasGcc==YES
    /* Pass on Ultrix cpp options to gcc; see the Ultrix cpp man page -IAN! */
    #define StandardDefines -Dultrix -Dvax -Dunix -Dbsd4_2
    #endif

envbvs@epb2.lbl.gov (Brian V. Smith) (01/08/90)

In article <12863@watcgl.waterloo.edu> idallen@watcgl.waterloo.edu writes:
< From: "Ian! D. Allen [CGL]" <idallen>
< 
< Our gnu compiler doesn't define -Dultrix on Ultrix, and I see that various
< things in R4 seemd to depend on having -Dultrix set.  I resorted to
< doing this in the ultrix.cf file -- any better ideas?
< 
<     #if defined(HasGcc) && HasGcc==YES
<     /* Pass on Ultrix cpp options to gcc; see the Ultrix cpp man page -IAN! */
<     #define StandardDefines -Dultrix -Dvax -Dunix -Dbsd4_2
<     #endif

I ran into the same problem with xdm.  Keith Packard from the X Consortium
suggested puting the -Dultrix in the CcCmd line in site.def, but it also
makes sense to put it in ultrix.cf as you have done.

What other clients (or server code) need the -Dultrix flag?  I would hate to 
have to rebuild the whole tree as this takes about 14 hours on a vaxstation II.

--
_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.