PDA

View Full Version : Static vs. Dynamic Building for GPL Open Source Software Release



brent99
10th March 2008, 23:38
Is there any legal issue with statically linking the QT libraries for a GPL OSS release? Or does it have to be dynamic for compliance purposes?

jacek
11th March 2008, 02:27
As long as the application and all libraries are on GPL there is no problem.

brent99
11th March 2008, 04:12
Just a follow-up comment for mass consumption....

It seems to me, based on some net reading, that you can statically link GPL program to GPL library, but you should only dynamically link proprietary program to GPL library.

Simple enough. :o Of course, in QT's case, that would be purchased copy of QT with proprietary program.

jacek
11th March 2008, 13:16
but you should only dynamically link proprietary program to GPL library.
No, you can't link GPL libraries with proprietary applications, but it's possible with LGPL ones. It doesn't have to be dynamic linking, but it's easier to fulfill LGPL requirements with dynamic linking.

brent99
11th March 2008, 15:36
If that were true, you couldn't run proprietary apps on linux, since all the linux libraries are GPL.

wysota
11th March 2008, 15:59
GPL excludes libraries and tools that are "distributed as part of the system" (or something similar), so you can link closed-source apps against them.

Besides, standard Linux libraries (such as glibc) are LGPL.

jacek
11th March 2008, 20:46
GPL excludes libraries and tools that are "distributed as part of the system" (or something similar), so you can link closed-source apps against them.
Yes, and I remember seeing an exception in one of the system headers that covered proprietary applications.