mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2017-08-28, 16:12   #1
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

165468 Posts
Default 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.
Prime95 is offline   Reply With Quote
Old 2017-08-28, 16:36   #2
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

25·257 Posts
Default

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

Xyzzy is offline   Reply With Quote
Old 2017-08-28, 16:53   #3
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by Prime95 View Post
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?
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.
CRGreathouse is offline   Reply With Quote
Old 2017-08-28, 17:07   #4
Mysticial
 
Mysticial's Avatar
 
Sep 2016

1010011002 Posts
Default

Yes, you're allowed to link to LGPL from closed-sourced code. But there is a difference between dynamic linking and static linking.
  • 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.

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.

Last fiddled with by Mysticial on 2017-08-28 at 17:14
Mysticial is offline   Reply With Quote
Reply



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


Sat Jul 17 08:59:26 UTC 2021 up 50 days, 6:46, 1 user, load averages: 2.12, 1.69, 1.51

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.