home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / help / 2986 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  41 lines

  1. Xref: sparky gnu.gcc.help:2986 comp.unix.sysv386:17858 biz.sco.general:5390
  2. Newsgroups: gnu.gcc.help,comp.unix.sysv386,biz.sco.general
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!wa4mei.atl.ga.us!kd4nc!n4hgf!wht
  4. From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
  5. Subject: Re: gcc 2.3.2 on SCO 3.2.4 (__STDC__)
  6. Organization: TuckerWare/ARS N4HGF
  7. Date: Thu, 21 Jan 1993 05:02:36 GMT
  8. Message-ID: <1993Jan21.050236.16536@n4hgf.Mt-Park.GA.US>
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. References: <1993Jan20.123122.12886@dd.dk>
  11. Lines: 28
  12.  
  13. Mads Westermann (wes@dd.dk) wrote:
  14. : Sometime ago there was a discussion on a problem involving the
  15. : definition of __STDC__ in gcc versus cc on SCO 3.2.4. I have now
  16. : run into the problem and cannot remember what the solution was !!
  17. : If there's somebody out there that has the solution I'd be very
  18. : interested in hearing about it.
  19.  
  20. To make sure it works for me with K&R code, I do:
  21.  
  22. CC = gcc
  23. CFLAGS = \
  24.     -traditional -D__STDC__=0 \
  25.     -D_NO_PROTOTYPE -D_SVID -D_KR \
  26.     -DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
  27.     -DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
  28.     -DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix -Di386
  29.  
  30. This gives no way to recalcitrant header files or to various
  31. gcc configuration philosophies.
  32.  
  33. Chip Salzberg has provided a configuration for gcc which obviates
  34. the need for *most* of the above, but not all.  The above make *sure*
  35. even if you have not received the benefit of Chip's wisdom.
  36.  
  37. ------------------------------------------------------------------------------
  38. Warren Tucker  (404)587-5766              n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
  39. All readers cannot be leaders, but all leaders must be readers. - Harry Truman
  40.