home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / GnuSource / cc-61.0.1 / cc / README.SCO < prev    next >
Text File  |  1990-11-26  |  2KB  |  65 lines

  1. ========= Checklist from of Ari Kautonen (akk@tut.fi) ======================
  2.  
  3. Part 1. Compiling Gnu C in SCO Unix System V 3.2
  4.  
  5. 1. Rename stamp_extract.c to stamp-ext.c
  6.  
  7. 2. Change all occurrences of stamp-extract to stamp-ext in Makefile
  8.  
  9. 3. Remove all -g and -O options from the Makefile including the ones
  10.    in gnulib and gnulib2 compiling rules.
  11.  
  12. (4. If needed use 'yacc' insteadt of 'bison' in BISON from Makefile.)
  13.  
  14. 5. Change all statements using 'ranlib' to use 'ar ts' insteadt.
  15.    Example:
  16.    Old: if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then  ranlib gnulib ;fi
  17.    New: ar ts gnulib
  18.  
  19. 6. Do not use libPW -library but use alloca.c from Gnu Emacs distribution.
  20.    Uncomment 'ALLOCA = alloca.o' and make the following change to Makefile:
  21.    Replace:
  22.        alloca.o:    alloca.c
  23.         $(CC) $(CFLAGS) -S `echo $(srcdir)/alloca.c | sed 's,^\./,,'`
  24.         as alloca.s -o alloca.o
  25.    With:
  26.        alloca.o:    alloca.c
  27.         $(CC) $(CFLAGS) -c $(srcdir)/alloca.c
  28.  
  29. 7. Run: config.gcc i386-sysv
  30.  
  31. 8. Run: make cpp
  32.  
  33. 9. Rename explow.c, reload.c and recog.c to end with .gnu.
  34.  
  35. 10. In csh, run the following:
  36.     foreach i (explow reload recog)
  37.       ./cpp -P -I. -I./config <$i.gnu >$i.c
  38.     end
  39.  
  40. 11. Run: make
  41.  
  42. This should produce a cc-compiled gcc, that is neither optimized nor
  43. capable of optimization.
  44.  
  45. 12. Run: make stage1
  46.  
  47. 13. Comment out the statement 'ALLOCA = alloca.o' from Makefile
  48.  
  49. 14. Rename files that end with .gnu to end with .c
  50.  
  51. 15. Run: make CC=stage1/gcc CFLAGS="-Bstage1/"
  52.  
  53. This should produce an unoptimized gcc capable of optimization.
  54.  
  55. 16. Run: make stage1
  56.  
  57. 17. Run: make CC=stage1/gcc CFLAGS="-O -g -Bstage1/"
  58.  
  59. This should produce an optimized gcc capable of producing optimized and
  60. debuggable code.
  61.  
  62. 18. Change installation options in Makefile and run 'make install'
  63.  
  64. That's it!  (I hope ;-))
  65.