home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 7 / FreshFishVol7.bin / bbs / gnu / gcc-2.3.3-src.lha / GNU / src / amiga / gcc-2.3.3 / README.ENCAP < prev    next >
Text File  |  1994-02-06  |  2KB  |  70 lines

  1. 1/3/89 Pace Willisson
  2.  
  3. Here is what to do to bring up GCC & tools on an 80386 running system 5.3
  4. (if you are adventurous and want to use the latest and greatest tools.
  5. If you want it to be easy, check back in a couple of months.)
  6.  
  7. All of these instructions assume you are using the usg compiler.  After
  8. you get to the end, you could start over using the GNU compiler, but 
  9. that may not work yet ...
  10.  
  11. First make gcc, cc1, cpp, and gnulib:
  12.  
  13.     cd .../gcc
  14.     config.gcc i386-sysv-gas
  15.     make start.encap
  16.  
  17. Don't try to bootstrap the compiler with itself at this point,
  18. since it can't really be used until GAS and the converted libraries
  19. are installed.
  20.  
  21. Now you must copy `cc1' and `cpp' and `gnulib' into the directory
  22. `/usr/local/lib/gcc-lib/i386-sysv-gas/VERSION', where VERSION stands for
  23. the GCC version number.  Also install `gcc' in a directory in your
  24. path.
  25.  
  26. Now, make the GNU assembler:
  27.  
  28.     cd .../gas
  29.     make a386
  30.     cp a386 /usr/local/lib/gcc-lib/i386-sysv-gas/VERSION
  31.  
  32. Now, make the other utilities:
  33.  
  34.     cd .../binutils
  35.  
  36. edit Makefile to turn on the CFLAGS for USG using COFF_ENCAPSULATE
  37.  
  38.     make
  39.     cp ld /usr/local/lib/gcc-lib/i386-sysv-gas/VERSION
  40.  
  41. Put the other programs (size nm strip ar objdump and ranlib) somewhere
  42. handy, but don't clobber your usg programs.  I put them all in
  43. /usr/gnu/gnucomp, and I have this shell script in my path under the name "gnu":
  44.  
  45.     exec /usr/gnu/gnucomp/$*
  46.  
  47. That way, I can say "gnu nm a.out", etc.
  48.  
  49. Convert the libraries to the encapsulated format:
  50.  
  51.     make libc.a
  52.     cp libc.a /usr/local/lib/gnu/libc.a
  53.  
  54.     cp .../gcc/gnulib usg-gnulib
  55.     make gnulib
  56.     cp gnulib /usr/local/lib/gcc-lib/i386-sysv-gas/VERSION
  57.  
  58.     robotussin /lib/crt0.o /usr/local/lib/gcc-crt0.o
  59.  
  60. Now add the parts of `gnulib' that are compiled with GCC, 
  61. and install the complete `gnulib' in place of the partial one.
  62.  
  63.     cp gnulib .../gcc
  64.     cd .../gcc
  65.     make rest.encap
  66.     cp gnulib /usr/local/lib/gcc-lib/i386-sysv-gas/VERSION
  67.  
  68. Now, you should be able to use 'gcc' to compile programs.
  69. If you want to bootstrap GCC with itself, this can now be done.
  70.