89
votes

I have read on the web that following combination exists :

Proprietary Source code + GPL Source code - > GPL Source code ( All code has to be released under GPL)

Proprietary Source code + LGPL Source code - > Proprietary Source code ( All code remains Proprietary )

Now how does statically/Dynamically linking GPL and LGPL code works with the above combination?

4
  • 4
    Propriety Source code + LGPL Source code - > Propriety Source code, this is wrong, LGPL Source code stays LGPL.
    – wimh
    Apr 16, 2012 at 17:30
  • 4
    I'm voting to close this question as off-topic because it is about licensing or legal issues, not programming or software development. See here for details, and the help center for more. Jun 3, 2015 at 4:14
  • 2
    I wonder is this should be migrated to opensource.stackexchange.com. But it's really somehow important also for developers, thus not sure.
    – pevik
    Jun 8, 2020 at 10:31
  • @pevik For the record, the question is far too old to migrate. There's a 60 day migration window, which you missed by a solid 8 years (and it's about 11 years too late now)
    – Zoe is on strike
    Jan 26 at 12:04

1 Answer 1

120
votes

If you want to distribute a combined work, you'll have to use the following license;

Proprietary Source code + GPL Source code

Proprietary Source code + LGPL Source code

See also executing a (L)GPL program from proprietary Source code.

Update (November 2014): A Comprehensive Tutorial and Guide contains a clear an detailed description of the (L)GPL and its usage, including distribution. I recommend it for more details.

13
  • 1
    ...though, I suppose the " provide everything that allow the user to relink the application " part covers also providing source under other than LGPL, so it can be re-compiled and then re-linked.
    – hyde
    Jan 7, 2014 at 7:23
  • 3
    I'm mostly sure this comment is absolutely correct. If you statically link a LGPL library, then the application itself must be LGPL. We have had our lawyer double-check on this in the past. Dynamically linking to a LGPL library is the only way to avoid becoming LGPL.
    – Stevan
    Jan 14, 2015 at 16:02
  • 1
    @Inkeliz comments should not be used for (new) questions. But your question would now be considered off-topic. If you use a lgpl ffmpeg binary (for example on windows ffmpeg.exe), then you either do not link to it at all, or it would be dynamically. As you use the lgpl version, you don't need to share the source of your program in both cases. You must offer the ffmpeg source code, but because you don't change it, it is sufficient to point to the official website.
    – wimh
    Jun 24, 2016 at 18:58
  • 1
    is there any difference using binary (static) or shared library in apk (Android app)? user can't easily replace library in apk in both cases anyway
    – user25
    May 13, 2018 at 19:48
  • 4
    @Stevan Your comment directly contradicts LGPL's own official FAQ. That is now linked to by the answer, and the answer has also been updated with that info: you do NOT need to licence your code under LGPL if you statically link, just provide some way for users to update library code and relink your executable against it. That includes giving suitable unlinked binaries, or providing your source code under a proprietary licence. (I'm not sure what comment you meant by "this comment" - I think maybe you were referring to the answer (at the time).) Apr 9, 2021 at 10:46

Not the answer you're looking for? Browse other questions tagged or ask your own question.