This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about gcc compiler


2009/7/2 Yapparova Lilya <c-rulit@yandex.ru>:
>
> We`d like to use a compiler gcc to compile our application. I know that gcc exists under special exception which allows to use it for commercial application.
>
> I have 2 questions:
>
> If we use a static linking with gcc Â- Âshould we distribute our application on the terms of GPL? Âor can we distribute our application under the terms of our license?
>

The difference is whether you're using gcc, or deriving from it.

- If you *use* GCC to compile and link *your own* code, the output can
be under whatever license you want.  (This is the normal usage.)

- If you *compile* GCC *into your* code (by linking, copy-paste, or
whatever), then your code must also be under GPL.  (You might want to
do this if you're writing an IDE, for example, and want to leverage
GCC's parsers.)

IANAL, of course,
~ Scott


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]