home *** CD-ROM | disk | FTP | other *** search
/ ftp.mayn.de / ftp.mayn.de-pub.zip / ftp.mayn.de-pub / apple / apple_unix / GNU_stuff / README.gcc-2.6.3 < prev    next >
Text File  |  2017-03-06  |  2KB  |  74 lines

  1. Here are the diffs to get gcc 2.6.3 to compile and run under A/UX. To upgrade
  2. to gcc 2.6.3 you'll need to use gcc to compile gcc. To do this, grab a
  3. pre-compiled version of gcc and install it. When you've done that, you're
  4. ready to recreate gcc.
  5.  
  6. First of all, you'll need to grab the source for gcc 2.6.3 from your
  7. favorite site. Then apply the A/UX-patches:
  8.  
  9.     % patch < Ngcc4aux.diffs
  10.  
  11. At this point, copy 'gas' (from the gcc distribution) over to the source
  12. directory for gcc 2.6.3 as 'as'. This is an important step; don't forget it.
  13.  
  14. Finally, type:
  15.  
  16.     % ./configure aux
  17.  
  18. At this point, look through Makefile and make sure things are located where
  19. you will want them to go. By default, gcc will expect to be placed in
  20. /usr/local/Gnu and all it's supplemental files, such as cc1, to be located
  21. in /usr/local/Gnu/lib/gcc/aux/2.6.3. Once you've done this, you are ready
  22. to start building gcc. Type:
  23.  
  24.     % make CC=<<gcc>>
  25.  
  26. where <<gcc>> is the full pathname to your "old" copy of gcc... and wait.
  27.  
  28. When that's done, you will want to (well,... I recommend it, at least :) )
  29. make a stage2 build. This is done by typing:
  30.  
  31.     % make stage1
  32.     % ln as stage1/as
  33.     % make CC="stage1/xgcc -Bstage1/"
  34.  
  35. Wait for this to complete... When this is done, you can either continue to
  36. build a stage3 compiler, or install gcc. To make the stage3 compiler:
  37.  
  38.     % make stage2
  39.     % ln as stage2/as
  40.     % make CC="stage2/xgcc -Bstage2/"
  41.  
  42. Then finally type:
  43.  
  44.     % make CC="stage2/xgcc -Bstage2/" compare
  45.  
  46. At long last, you are ready to install 2.6.3... This is accomplished by
  47. typing, easily enough:
  48.  
  49.     % make CC="stage2/xgcc -Bstage2/" install
  50.  
  51. To make and install the Objective C stuff; do:
  52.  
  53.     % make CC="stage2/xgcc -Bstage2/" objc-runtime
  54.     % make CC="stage2/xgcc -Bstage2/" install-libobjc
  55.  
  56. Finally, do:
  57.  
  58.     % chmod 755 fixcrts
  59.     % ./fixcrts
  60.  
  61. --
  62.  
  63. The diffs are _heavily_ based on those provided by John Coolidge @ Apple
  64. for gcc 2.5.7... John's been busy with work (and getting married :) ) so
  65. I've made these diffs available until John can re-take-over the gcc stuff.
  66.  
  67. Enjoy!
  68. --
  69. #include <std/disclaimer.h>
  70.   |     Jim Jagielski      |  jim@jagubox.gsfc.nasa.gov  |  V: 301 286-5964  |
  71.   | NASA/GSFC, Code 734.4  |     Greenbelt, MD 20771     |  F: 301 286-1719  |
  72.                        <<  I want my TWO DOLLARS !!  >>
  73.                                    --   The paperboy
  74.