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