3

Suppose I create software that uses a library licensed under the GPL. If I distribute the software including the library, the software would have to be licensed under the GPL as well. But what if I distribute the software without the GPL library? Can the software then be closed source?

For example, I could achieve this by distributing the software without the GPL library, and making it download the GPL library's object files (for dynamic linking) from a third-party source when the software first starts up. In this way, I am not "distributing" the GPL library, so I do not have to comply with the terms of the GPL. The software can then remain closed source. Does this violate the GPL?

Note: By "GPL", I mean the GPLv2 or GPLv3.

Flux
  • 703
  • 4
  • 16
  • 1
  • @Martin_in_AUT I'm not sure that it answers the question. In this question, the GPL library is dynamically linked with the proprietary program. In that question, the proprietary program forks and execs a standalone GPL program. – Flux Aug 07 '22 at 02:38
  • So maybe these answers might be closer to your situation: https://opensource.stackexchange.com/questions/2139/can-i-license-python-project-under-3-clause-bsd-while-it-has-gpl-based-dependenc/2148#2148 and https://opensource.stackexchange.com/questions/12377/best-way-to-include-gpl-licensed-code-in-an-mit-licensed-library?noredirect=1&lq=1 and possibly https://opensource.stackexchange.com/questions/7291/optional-gpl-dependency-in-commercial-python-application#7331 – Martin_in_AUT Aug 07 '22 at 10:19
  • This would probably get more into a legal question area or legal grey area, but this seems to be kind of like distributing .torrent files (which are instructions to download often copyrighted materials). Your proposed program similarly contains instructions to download GPL code in violation of the license terms. So technically, neither case (neither .torrent files nor your GPL library downloader) is a copyright violation in itself, yet I still would not feel comfortable distributing either of those things from a legal standpoint. The intention of both seems to be copyright infringement. – Brandin Aug 08 '22 at 09:40
  • Technically, your proprietary program could be distributed without the GPL library, but it would not run without the library. (GPL libraries mandate that programs using the library must also be under the GPL. The LGPL excludes this restriction.) – no ai please Aug 08 '22 at 18:49

1 Answers1

2

But what if I distribute the software without the GPL library? Can the software then be closed source?

No, your software cannot be closed source.

If the executable that your end-user runs on their device contains any part that is subject to the GPL license, then that license requires that all parts are available under a license that grants the same rights as the GPL. This means that if you make use of a GPL-licensed library, then you must distribute your application under a GPL-compatible open-source license even if you don't distribute the library together with your application.

Bart van Ingen Schenau
  • 29,549
  • 3
  • 46
  • 83