Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Licensing software that uses GPL code with licenses other than GPL [closed]

Tags:

licensing

gpl

Let's say I write some code, which we'll call X. It uses some GPL code, let's call it library Y. Clearly I would have to release X with a GPL license. That's fine. My question is, can I additionally release X under a license such as MIT, so that if someone only wants X but not Y they don't need to use it with the GPL?

like image 608
swampsjohn Avatar asked Oct 15 '22 05:10

swampsjohn


1 Answers

YES, you can release your source code under any license you wish. You have that right under US copyright law.

However, if you incorporate any GPL source code within your source code (or distribute with any GPL code), you must use the GPL license for the entire work. That's because you have to agree to their license to use their code.

BTW. I'm not an attorney.

like image 51
tgiphil Avatar answered Oct 24 '22 23:10

tgiphil