home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / misc / discuss / 2517 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!agate!forney.berkeley.edu!jbuck
  2. From: jbuck@forney.berkeley.edu (Joe Buck)
  3. Newsgroups: gnu.misc.discuss
  4. Subject: Re: GCC licensing issues.
  5. Message-ID: <14ke2fINNd5s@agate.berkeley.edu>
  6. Date: 22 Jul 92 19:48:31 GMT
  7. References: <1992Jul22.172509.15151@cimage.com>
  8. Organization: U. C. Berkeley
  9. Lines: 47
  10. NNTP-Posting-Host: forney.berkeley.edu
  11.  
  12. In article <1992Jul22.172509.15151@cimage.com> andyh@cimage.com (Andy Hore) writes:
  13. >The problem I have is this. I've been using gcc to compile a program
  14. >that is to be sold commercially, and I don't want to infringe any
  15. >copyrite issues the GNU. I read the COPYRITE.lib file that came with
  16. >gcc-2.2.2  and thought that it implied that linking with libgcc would
  17. >mean that I would infringe on copyrite laws. Is this correct thinking
  18. >or not? If so, do you have any idea how I can resolve this problem,
  19. >short of getting a new compiler?
  20.  
  21. >   I'm not currently linking with the GNU libc replacement, if that
  22. >makes any difference.
  23.  
  24. Yes, this makes a difference.
  25.  
  26. libgcc1.c and libgcc2.c (the only sources for -lgcc) contain the following:
  27.  
  28. /* As a special exception, if you link this library with files
  29.    compiled with GCC to produce an executable, this does not cause
  30.    the resulting executable to be covered by the GNU General Public License.
  31.    This exception does not however invalidate any other reasons why
  32.    the executable file might be covered by the GNU General Public License.  */
  33.  
  34. The consequence is that if the only Gnu library you are including is
  35. -lgcc, the GPL does not affect your code in any way.
  36.  
  37. If you use the GNU libc or libg++, you are subject to a weaker license
  38. known as the LGPL.  (Gnu Library General Public License).  This permits
  39. you to keep your own code proprietary; however, you must distribute your
  40. application in linkable form (for example, with .o files and a Makefile)
  41. with full sources to the Gnu libraries that you use.  (I suppose that it
  42. would be legal, though unfriendly, to do an ld -r that links all of your
  43. code into one big .o file and ship that along with the libraries).
  44.  
  45. If you use any code covered by the GPL rather than the LGPL (for example,
  46. the bison parser skeleton, or part of Gnu Emacs, or some such), you are
  47. covered by the GPL -- you either must put all of your code under the GPL
  48. or else you have no permission to use the Gnu code.
  49.  
  50. What I'm giving you here are the basics; consult a lawyer for tricky
  51. boundary cases.
  52.  
  53.  
  54.  
  55.  
  56.  
  57. --
  58. Joe Buck    jbuck@ohm.berkeley.edu
  59.