Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
GNU Lesser General Public License
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Free-software license}} {{Infobox software license | name = GNU Lesser General Public License | image = File:LGPLv3 Logo.svg | caption = Logo | author = | publisher = | date = {{Start date and age|1991}} | OSI approved = Yes<ref>[https://opensource.org/licenses Licenses & Standards] Open Source Initiative</ref> | Debian approved = Yes<ref>[https://www.debian.org/legal/licenses/ License information] Debian</ref> | FSF approved = Yes<ref name="fsf">{{cite web |url=https://www.gnu.org/licenses/license-list.en.html#LGPL |title=Various Licenses and Comments about Them|website=Free Software Foundation |accessdate=2 August 2018 |date=26 June 2018}}</ref> | GPL compatible = Yes<ref name="fsf"/> | copyleft = Yes<ref name="fsf"/> ([[#FSF recommendations on library licensing|library or dynamic linking-based]]) | linking = Yes | spdx = LGPL-3.0-or-later<br />LGPL-3.0-only<br />LGPL-2.1-or-later<br />LGPL-2.1-only<br />LGPL-2.0-or-later<br />LGPL-2.0-only }} The '''GNU Lesser General Public License''' ('''LGPL''') is a [[free-software license]] published by the [[Free Software Foundation]] (FSF). The license allows developers and companies to use and integrate a software component released under the LGPL into their own (even [[proprietary software|proprietary]]) software without being required by the terms of a strong [[copyleft]] license to release the source code of their own components. However, any developer who modifies an LGPL-covered component is required to make their modified version available under the same LGPL license. For proprietary software, code under the LGPL is usually used in the form of a [[shared library]], so that there is a clear separation between the proprietary and LGPL components. The LGPL is primarily used for [[Library (computing)|software libraries]], although it is also used by some stand-alone applications. The LGPL was developed as a compromise between the strong [[copyleft]] of the [[GNU General Public License]] (GPL) and more [[Permissive free software licence|permissive]] licenses such as the [[BSD license]]s and the [[MIT License]]. The word "Lesser" in the title shows that the LGPL does not guarantee the end user's complete freedom in the use of software; it only guarantees the freedom of modification for components licensed under the LGPL, but not for any proprietary components. ==History== The license was originally called the '''GNU Library General Public License''' and was first published in 1991, and adopted the version number 2 for parity with GPL version 2. The LGPL was revised in minor ways in the 2.1 point release, published in 1999, when it was renamed the GNU Lesser General Public License to reflect the FSF's position that not all libraries should use it. Version 3 of the LGPL was published in 2007 as a list of additional permissions applied to GPL version 3. In addition to the term "work based on the Program" of GPL, LGPL version 2 introduced two additional clarification terms "work based on the library" and "work that uses the library".<ref>{{cite web|title=Chapter 10. The Lesser GPL |url=https://copyleft.org/guide/comprehensive-gpl-guidech11.html |work=Copyleft and the GNU General Public License: A Comprehensive Tutorial and Guide | year=2018 }}</ref> LGPL version 3 partially dropped these terms. ==Differences from the GPL== The main difference between the GPL and the LGPL is that the latter allows the work to be linked with (in the case of a library, "used by") a non-(L)GPLed program, regardless of whether it is licensed under a license of GPL family or other licenses.<ref name="not_use_LGPL">Stallman, Richard. "[http://www.fsf.org/licensing/licenses/why-not-lgpl.html Why you shouldn't use the Lesser GPL for your next library]". [[Free Software Foundation]] official website.</ref> In LGPL 2.1, the non-(L)GPLed program can then be distributed under any terms if it is not a [[derivative work]]. If it is a derivative work, then the program's terms must allow for "modification of the work for the customer's own use and [[reverse engineering]] for debugging such modifications". Whether a work that uses an LGPL program is a derivative work or not is a legal issue. A standalone executable that [[Library (computing)#Dynamic linking|dynamically links]] to a library through a [[Library (computing)#Shared libraries|.so]], [[Dynamic-link library|.dll]], or similar medium is generally accepted as not being a derivative work as defined by the LGPL. It would fall under the definition of a "work that uses the Library". Paragraph 5 of the LGPL version 2.1 states: :A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. Essentially, if it is a "work that uses the library", then it must be possible for the software to be linked with a newer version of the LGPL-covered program. The most commonly used method for doing so is to use "a suitable [[Library (computing)#Shared libraries|shared library]] mechanism for linking". Alternatively, a [[statically linked library]] is allowed if either source code or linkable object files are provided.<ref name="LGPL_Section_4">[https://www.gnu.org/copyleft/lesser.html#section4 Gnu Lesser General Public License, Section 4], pt. d) 0)</ref> ==Compatibility== One feature of the LGPL is the permission to sublicense<ref>{{cite web |title=sublicense |url=https://en.wiktionary.org/wiki/sublicense |website=Wiktionary |language=en |date=7 December 2020}}</ref> under the GPL any piece of software which is received under the LGPL (see section 3 of the LGPL version 2.1, and section 2 option b of the LGPL version 3). This feature allows for direct reuse of LGPLed code in GPLed libraries and applications. Version 3 of the LGPL is not inherently compatible with version 2 of the GPL. However, works using the latter that have given permission to use a later version of the GPL are compatible:<ref name="LGPL_FSF">[https://www.gnu.org/licenses/license-list.html#LGPL GNU Lesser General Public License (LGPL) version 3]. [[Free Software Foundation]] official website.</ref> a work released under the GPLv2 "or any later version" may be combined with code from a LGPL version 3 library, with the combined work as a whole falling under the terms of the GPLv3.<ref name="LGPL_FSF_MATRIX">[https://www.gnu.org/licenses/gpl-faq.html#gpl-compat-matrix Frequently Asked Questions about the GNU Licenses - GNU Project - Free Software Foundation]. [[Free Software Foundation]] official website.</ref> ==FSF recommendations on library licensing== The former name ''GNU Library General Public License'' gave some the impression that the FSF recommended that all software libraries should use the LGPL and programs should use the GPL. In 1999 essay ''Why you shouldn't use the Lesser GPL for your next library'' [[Richard Stallman]] explained that while the LGPL had not been [[deprecation|deprecated]], one should not necessarily use the LGPL for all libraries, as using GPL can give advantage to free-software developers.<ref name="not_use_LGPL" /> ==Programming language specifications== The license uses terminology which is mainly intended for applications written in the [[C (programming language)|C programming language]] or its family. Franz Inc., the developers of [[Allegro Common Lisp]], published their own preamble to the license to clarify terminology in the [[Lisp (programming language)|Lisp]] context. The LGPL with this preamble is sometimes referred to as the LLGPL.<ref name="LGPL_preamble">[http://opensource.franz.com/preamble.html Preamble to the Gnu Lesser General Public License]</ref> In addition, [[Ada (programming language)|Ada]] has a special feature, [[wikibooks:Ada Programming/Generics|generics]], which may prompt the use of the [[GNAT Modified General Public License]] (GMGPL): it allows code to link against or instantiate GMGPL-covered units without the code itself becoming covered by the GPL. [[C++]] templates and [[Header-only|header-only libraries]] have the same problem as Ada generics. Version 3 of the LGPL addresses such cases in section 3.<ref>[https://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2008/02/msg00003.html LGPLv3 for a C++ Pure Template Library ?]</ref> ===Class inheritance=== Some concern has risen about the suitability of object-oriented classes in LGPL-licensed code being [[Inheritance (object-oriented programming)|inherited]] by non-(L)GPL code. Clarification is given on the official GNU website: :The LGPL does not contain special provisions for inheritance, because none are needed. Inheritance creates derivative works in the same way as traditional linking, and the LGPL permits this type of derivative work in the same way as it permits ordinary function calls.<ref>Turner, David. [https://www.gnu.org/licenses/lgpl-java.html The LGPL and Java]. [[GNU]] official website.</ref> ==See also== {{Portal|Free and open-source software}} <!-- Please keep entries in alphabetical order & add a short description [[WP:SEEALSO]] --> *[[GNU Affero General Public License]] *[[GNU Free Documentation License]] *[[GNAT Modified General Public License]] *[[GPL linking exception]] *[[:Category:Software using the GNU Lesser General Public License|Software using the GNU Lesser General Public License (category)]] <!-- please keep entries in alphabetical order --> ==References== {{Reflist|30em}} ==External links== * {{Official website}} * [https://www.gnu.org/licenses/lgpl-3.0.html GNU Lesser General Public License v3.0] * [https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License v2.1]—This version is [[deprecated]] by the FSF. * [https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html GNU Lesser General Public License v2.0]—This version is [[deprecated]] by the FSF. * [http://www.linuxjournal.com/article/6366 Derivative Works] * [http://www.ifosslr.org/ifosslr/article/view/75 Lisping Copyleft: A Close Reading of the Lisp LGPL, 5 International Free and Open Source Software Law Review 15 (2013)] {{GNU}} {{Free Software Foundation}} {{FOSS}} {{DEFAULTSORT:Gnu Lesser General Public License}} [[Category:Computer law]] [[Category:Copyleft]] [[Category:Free and open-source software licenses]] [[Category:Copyleft software licenses]] [[Category:GNU Project]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Cite web
(
edit
)
Template:FOSS
(
edit
)
Template:Free Software Foundation
(
edit
)
Template:GNU
(
edit
)
Template:Infobox software license
(
edit
)
Template:Official website
(
edit
)
Template:Portal
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)