Jump to content
at3s

Can I use dynamically linked MPL 2.0 dll library for commercial purposes?

Recommended Posts

dll is a wrapper of MPL 2.0 C++ library.

Can I use this dll in my commercial project (an executable dynamically calls a function of dll)?

Will users be able to request sources of this dll only or all my whole project?

Share this post


Link to post

The MPL only requires you to provide the sources that are licensed under the MPL, unless you modify the original. In that case you must also make those modifications available.

It does not require you to make the sources of your program available. It also doesn't matter whether or is linked into the executable or called as a DLL, so no need to isolate it as a DLL.

 

(Disclaimer: I'm not a lawyer. This is how I understood the license text.)

Edited by dummzeuch
  • Thanks 1

Share this post


Link to post

AFAIK even the strictest GPL allows dynamic linking without the burden of opening your code

 

No, GPL is more severe than I thought

Edited by Fr0sT.Brutal
  • Thanks 1

Share this post


Link to post
1 hour ago, Fr0sT.Brutal said:

AFAIK even the strictest GPL allows dynamic linking without the burden of opening your code

Are you sure about dynamically linked GPL?

Based on my research in the web, it's not so clear.

Or I'm wrong?

Share this post


Link to post

Just take a look at
https://www.mozilla.org/en-US/MPL/2.0/FAQ/:

 

Quote

How 'viral' is the MPL? If I use MPL-licensed code in my proprietary application, will I have to give all the source code away?

No. The license requires that Modifications (as defined in Section 1.10 of the license) must be licensed under the MPL and made available to anyone to whom you distribute the Source Code. However, new files containing no MPL-licensed code are not Modifications, and therefore do not need to be distributed under the terms of the MPL, even if you create a Larger Work (as defined in Section 1.7) by using, compiling, or distributing the non-MPL files together with MPL-licensed files. This allows, for example, programs using MPL-licensed code to be statically linked to and distributed as part of a larger proprietary piece of software, which would not generally be possible under the terms of stronger copyleft licenses.

 

1 hour ago, Fr0sT.Brutal said:

AFAIK even the strictest GPL allows dynamic linking without the burden of opening your code

Apart from the fact that this is just wrong, what does GPL have to do with MPL?

 

 

  • Thanks 1

Share this post


Link to post
1 hour ago, Fr0sT.Brutal said:

AFAIK even the strictest GPL allows dynamic linking without the burden of opening your code

Only, and only if your application does not depend upon that DLL to do its work. If it is an extension, giving extra features, not needed for the overall result, then you may use it that way. However, if the main purpose of your application depends on that DLL, it is to be published under GPL as well.

  • Thanks 1

Share this post


Link to post
2 hours ago, Der schöne Günther said:

Apart from the fact that this is just wrong, what does GPL have to do with MPL?

It's more strict. Nevermind, I forgot GPL is TOO viral. It's LGPL I was thinking about (LGPL)

2 hours ago, at3s said:

Are you sure about dynamically linked GPL?

Based on my research in the web, it's not so clear.

Nope. Any linking is just like using the code. link

Share this post


Link to post
11 minutes ago, Fr0sT.Brutal said:

Nevermind, I forgot GPL is TOO viral.

Any linking is just like using the code. link

No, this would mean that somebody could create a plugin for a commercial program (of a third party) and release it under the GPL. And then this would force that commercial program to also fall under the GPL.

 

But we degress, this is about the MPL, which is a lot less strict.

Share this post


Link to post
18 minutes ago, dummzeuch said:

No, this would mean that somebody could create a plugin for a commercial program (of a third party) and release it under the GPL. And then this would force that commercial program to also fall under the GPL.

That FAQ covers this case. They say this combination violates GPL indeed. But as plugin developer doesn't own main app, no troubles - he turns out to be the violator. Anyway I believe the license regulates distribution not end user config so you on your machine can use whatever combinations you like. But I could be mistaking here.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×