home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / archives / 3156 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.1 KB

  1. Path: sparky!uunet!stanford.edu!agate!agate!usenet
  2. From: andy@cs.caltech.edu (Andy Fyfe)
  3. Newsgroups: comp.archives
  4. Subject: [comp.sys.3b1] collect for gcc/g++ 2.2.2
  5. Followup-To: comp.sys.3b1
  6. Date: 21 Aug 1992 08:22:22 GMT
  7. Organization: California Institute of Technology
  8. Lines: 33
  9. Approved: adam@soda.berkeley.edu
  10. Distribution: world
  11. Message-ID: <17293uINNgtk@agate.berkeley.edu>
  12. References: <1992Aug16.023044.22052@cco.caltech.edu>
  13. NNTP-Posting-Host: soda.berkeley.edu
  14. X-Original-Newsgroups: comp.sys.3b1
  15. X-Original-Date: 16 Aug 92 02:30:44 GMT
  16.  
  17. Archive-name: auto/comp.sys.3b1/collect-for-gcc-g-2-2-2
  18.  
  19. I've merged the functionality of shld into collect2 version 2.2.2.
  20. When installed as /usr/local/lib/gcc-lib/3b1/2.2.2/ld it will handle
  21. the global constructors and destructors for g++, as well as only
  22. use the shared library to resolve otherwise unknown symbols (just
  23. as shld does for "gcc -shlib" alone, and shcc does as a replacement
  24. for cc).
  25.  
  26. The file can be picked up as collect.shar.Z in the directory
  27. pub/3b1 on ftp.cs.caltech.edu.  It contains the unlinked objects
  28. for collect2.  If you prefer to compile collect2 yourself, diffs
  29. for the sources are included.  It will create an additional
  30. C source file that contains the information in /lib/shlib.ifile
  31. (which is included when making collect) as well as a library
  32. libminic.a that contains the routines from libc.a that are not
  33. contained in the shared library.  This information varies depending
  34. on the version of the OS, so I haven't included a binary.
  35.  
  36. Over the next week or two I'll look at compiling groff 1.5 with
  37. g++ 2.2.2 (actually cross compile, but I needed collect2 working
  38. since linking must be done on the 3b1).
  39.  
  40. cc1plus isn't in the gcc2 binary distribution.  You can pick up
  41. the tar file pub/3b1/gcc2-objects/cc1plus.tar.Z, extract all the
  42. .o files, and link them together to get cc1plus.  I've haven't
  43. been able to link cc1plus with the shared library (shld and 
  44. collect2 both dump core -- I'm don't know why), but there's no
  45. problem if you don't use the shared library.
  46.     gcc -o cc1plus *.o
  47.  
  48. Andy Fyfe                    andy@cs.caltech.edu
  49.  
  50.