home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-Update.iso / NEXTSTEP / developer / languages / c / gcc.2.7.2.2.I.README < prev   
Encoding:
Text File  |  1997-05-23  |  1.9 KB  |  73 lines

  1. gcc-2.7.2.2.I.README
  2. Mar 1996
  3.  
  4.  
  5. This archive contains the following pre-built
  6. binaries: 
  7. gcc-2.7.2.2
  8. g77-0.5.20
  9. libg++-2.7.2
  10.  
  11. built on and for the i386-next-nextstep3 platform.  includes drivers
  12. for both 
  13. i386-next-nextstep3
  14. and
  15. m68k-next-nexstep3 (a cross-compiler)
  16. targets.
  17.  
  18. These have been built for and tested on NEXTSTEP 3.3, but may also work
  19. on other versions.  This build will mostly like NOT work on OpenStep 4.0
  20. and later.
  21.  
  22.  
  23. INSTALLATION
  24.  
  25. unpack into /usr/local, and you're done.  Issue the following commands
  26. as root:
  27. cd /usr/local
  28. gnutar xzvf /PathToArchive/gcc-2.7.2.2.I.b.tar.gz
  29.  
  30. NOTE: you STILL need the nexstep developer
  31. packages installed in order to use this, as it
  32. uses NeXT's supplied C libraries.  Also, in order to use the
  33. m68k-next-nextstep3 cross-compiler, you need the
  34. DeveloperLibs installed for m68k (in addition to i386).
  35.  
  36. Now if someone ported glibc (GNU libc) to NEXTSTEP, that 
  37. would be something!
  38.  
  39.  
  40. CROSS-COMPILER
  41.  
  42. It's a little tricky to use the cross-compiler,
  43. as it's usage differs a bit from NeXT's cc compiler.
  44. To produce m68k binaries, envoke as:
  45. gcc -bm68k-next-nextstep3 foo.c
  46.  
  47. FAT binary NOTE: gcc cannot (easily) create FAT binaries, at least 
  48. not in the same sense of NeXT's cc, ie,
  49. cc -arch m68k -arch i386 foo.c
  50. With gcc, you need to create to separate binaries, and then lipo
  51. them together by hand.
  52.  
  53. This is my first attempt at a cross compiler, so it may not work 
  54. perfectly (ie, your mileage may vary), but I was able to use it to 
  55. produce a m68k binary for my recent port of octave (v2.0.5).  
  56. One thing, I had a small problem with compiling c++.  I had to
  57. specify -L/usr/local/lib at link time, else it tries to like
  58. against /lib/libg++.a (bad) instead of /usr/local/lib/libg++.a.
  59.  
  60.  
  61. CREDITS
  62.  
  63. GNU Software
  64. http://www.gnu.ai.mit.edu/
  65.  
  66. Packager
  67. Rex Dieter <rdieter@math.unl.edu>
  68. Computer System Manager 
  69. Universtity of Nebraska-Lincoln  
  70. Department of Mathematics and Statistics 
  71. http://www.math.unl.edu/~rdieter/
  72.  
  73.