mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   LGPL and prime95 (https://www.mersenneforum.org/showthread.php?t=22544)

Prime95 2017-08-28 16:12

LGPL and prime95
 
Any lawyers here?

I get a headache reading LGPL licensing rules. If prime95 calls GMP functions in a GMP shared library will I run afoul of the LGPL license in any way?

Remember that prime95 does not publish all its source code and thus cannot use GPL code.

Xyzzy 2017-08-28 16:36

A possible resource for an answer: [url]https://opensource.stackexchange.com/[/url]

:mike:

CRGreathouse 2017-08-28 16:53

[QUOTE=Prime95;466505]I get a headache reading LGPL licensing rules. If prime95 calls GMP functions in a GMP shared library will I run afoul of the LGPL license in any way?[/QUOTE]

My understanding is that this is the whole point of the LGPL -- that you can link to a shared LGPL library even if your software is not open-source at all.

Mysticial 2017-08-28 17:07

Yes, you're allowed to link to LGPL from closed-sourced code. But there is a difference between dynamic linking and static linking.
[LIST][*]If you're dynamically linking, there are no issues at all.[*]If you're statically linking, you must provide a way for somebody to relink their own version of the LGPL library.[/LIST]
The idea here is that someone must be able to use their own version of the LGPL library. In the case of dynamic linking, they can simply swap out the library. In the case of static linking, that's not possible. Therefore, you're required to provide a way to relink.

There are exceptions though. For example, most of the "system libraries" in Linux (i.e. libc) have a static-linking exception to allow static-linking without the ability to relink. Otherwise, every closed-sourced program compiled with GCC and distributed would be in violation of the LGPL. I don't believe GMP has this static-linking exception.

Disclaimer: I'm not a lawyer and this does not constitute as legal advice.


All times are UTC. The time now is 08:59.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.