home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJCRX201.ZIP / cross / install next >
Encoding:
Text File  |  1996-10-26  |  1.0 KB  |  38 lines

  1.                Building a cross compiler based on DGJPP
  2.  
  3.  
  4. 1.  GCC is kinda touchy about the text files in the distribution being
  5.     UNIX text files rather than DOS text files.  YOU MUST USE "unzip -a"
  6.     rather than "unzip" to unpack the distribution.  If you havn't,
  7.     YOU MUST delete the directory and start again.
  8.     
  9.  
  10. 2.  Download gcc and binutils from your favorite gnu archive, perhaps
  11.  
  12.         ftp://prep.ai.mit.edu/pub/gnu/gcc-2.7.2.tar.gz
  13.         ftp://prep.ai.mit.edu/pub/gnu/binutils-2.7.tar.gz
  14.         
  15.         
  16. 3.  Unpack gcc and binutils in the current directory
  17.  
  18.         gzip -c gcc-2.7.2.tar.gz | tar -xf -
  19.         gzip -c binutils-2.7.tar.gz | tar -xf -
  20.  
  21.     
  22. 4.  Edit the makefile.  You will AT LEAST need to set the prefix
  23.     to determine where the cross compiler will be stored.
  24.     
  25. 5.  Apply the patch "patch.lib" found in the current directory
  26.  
  27.         patch < patch.lib
  28.         
  29.             
  30. 6.  Build the cross compiler:
  31.  
  32.         make all
  33.  
  34.     
  35. 7.  Install the cross compiler:
  36.  
  37.         make install
  38.