Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any license for my gcc-compiled program? [closed]

Let's assume I write a program which includes for example stdio.h and compile it with gcc.

Am I allowed to make money with my program? May I license my work with an MIT license?

like image 570
user1511417 Avatar asked Sep 06 '13 14:09

user1511417


1 Answers

Disclaimer: I am not a lawyer; if you are concerned about these issues you should consult a licensed practitioner.

GCC and its runtime libraries specifically come with a "Runtime Exception" clause in their licenses, which you can find here: http://www.gnu.org/licenses/gcc-exception-3.1.html

The exception essentially does the following:

When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs to use, in this way, the header files and runtime libraries covered by this Exception.

Therefore, compilation against GCC header and library files with non-GPL code does not itself violate the GPL.

like image 155
nneonneo Avatar answered Sep 18 '22 22:09

nneonneo