home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / sparc-sun-solaris2 / INSTALL.gcc < prev    next >
Encoding:
Text File  |  1993-06-22  |  2.2 KB  |  63 lines

  1. The solaris gcc compilation here is almost complete; you can install it in
  2. /opt/gnu as-is.  However, you may still wish to install the fixincludes.
  3. We cannot distribute the fixed header files because they are proprietary.
  4. However, you can install them yourself on your own system.  To do so, first
  5. install the binaries in the proper place in your system (/opt/gnu).  Then,
  6. run the command
  7.  
  8.     $ /bin/sh /opt/gnu/lib/gcc-lib/sparc-sun-solaris2/2.4.5/just-fixinc
  9.  
  10. This will build the fixincludes.  Note that the corrected header files go
  11. in the GCC installation directory so that only GCC sees them.  The original
  12. header files in /usr/include are not modified.
  13.  
  14.  
  15. In addition to the solaris GCC binaries (and the sources, if you want to
  16. rebuild gcc), you will need the Solaris-2 OS packages, `SUNWhea',
  17. `SUNWbtool', `SUNWarc', and `SUNWtoo' installed on your system.
  18.  
  19. To check whether an optional package is installed, you can run `pkginfo
  20. NAME'.  `pkginfo' is in `/usr/bin/'.  If NAME is not installed, you will
  21. get an error, like this:
  22.  
  23.      eg$ /usr/bin/pkginfo SUNWlibm
  24.      ERROR: information for "SUNWlibm" was not found
  25.  
  26. If NAME is installed, you will see a one-line summary of the package,
  27. like this:
  28.  
  29.      eg$ /usr/bin/pkginfo SUNWhea
  30.      system      SUNWhea        Header Files
  31.  
  32. To install one of these optional parts of Solaris 2 (NAME in the example),
  33. put the Solaris 2.0 distribution CD in the drive, mount it (for example, as
  34. `/cdrom'), then do:
  35.  
  36.      /usr/sbin/pkgadd -d /cdrom/Solaris_2.0 NAME ...
  37.  
  38. You can specify several package names at once.
  39.  
  40.    These are the Solaris 2 optional packages you'll need to use GCC:
  41.  
  42. `SUNWarc'
  43.      *Needed to link your programs:* Archive libraries for system
  44.      interfaces.
  45.  
  46. `SUNWbtool'
  47.      *Needed to build your programs:* "SPARCCompilers 2.0 Bundled
  48.      tools".  Most of the contents of `/usr/ccs/bin' (most notably, the
  49.      assembler) come from this package.
  50.  
  51. `SUNWhea'
  52.      *Needed to complete installation and compile your programs:* Header
  53.      files (`/usr/include').
  54.  
  55. `SUNWtoo'
  56.      *Needed to link your programs:* "Programming Tools", notably the
  57.      linker, `/usr/ccs/bin/ld'.
  58.  
  59. One additional optional package may be of interest:
  60.  
  61. `SUNWlibm'
  62.      Sun's math subroutine library. 
  63.