4 \section*{GNU Lesser General Public License}
6 \index[general]{GNU Lesser General Public License }
7 \index[general]{License!GNU Lesser General Public }
9 \elink{image of a Philosophical
10 GNU}{http://www.gnu.org/graphics/philosophicalgnu.html} [
11 \elink{English}{http://www.gnu.org/copyleft/lesser.html} |
12 \elink{Japanese}{http://www.gnu.org/copyleft/lesser.ja.html} ]
16 \elink{Why you shouldn't use the Lesser GPL for your next
17 library}{http://www.gnu.org/philosophy/why-not-lgpl.html}
19 \elink{What to do if you see a possible LGPL
20 violation}{http://www.gnu.org/copyleft/gpl-violation.html}
22 \elink{Translations of the
23 LGPL}{http://www.gnu.org/copyleft/copyleft.html\#translationsLGPL}
24 \item The GNU Lesser General Public License as a
25 \elink{text file}{http://www.gnu.org/copyleft/lesser.txt}
26 \item The GNU Lesser General Public License as a
27 \elink{Texinfo}{http://www.gnu.org/copyleft/lesser.texi} file
31 This GNU Lesser General Public License counts as the successor of the GNU
32 Library General Public License. For an explanation of why this change was
34 \elink{Why you shouldn't use the Lesser GPL for your next
35 library}{http://www.gnu.org/philosophy/why-not-lgpl.html} article.
37 \section{Table of Contents}
38 \index[general]{Table of Contents }
39 \index[general]{Contents!Table of }
44 \ilink{GNU LESSER GENERAL PUBLIC LICENSE}{SEC12}
49 \ilink{Preamble}{SEC23}
52 \ilink{TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND
56 \ilink{How to Apply These Terms to Your New Libraries}{SEC45}
63 \ilink{GNU LESSER GENERAL PUBLIC LICENSE}{TOC12}}
65 \index[general]{LICENSE!GNU LESSER GENERAL PUBLIC }
66 \index[general]{GNU LESSER GENERAL PUBLIC LICENSE }
68 Version 2.1, February 1999
72 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
73 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
74 Everyone is permitted to copy and distribute verbatim copies
75 of this license document, but changing it is not allowed.
76 [This is the first released version of the Lesser GPL. It also counts
77 as the successor of the GNU Library Public License, version 2, hence
78 the version number 2.1.]
83 \ilink{Preamble}{TOC23}}
85 \index[general]{Preamble }
87 The licenses for most software are designed to take away your freedom to share
88 and change it. By contrast, the GNU General Public Licenses are intended to
89 guarantee your freedom to share and change free software\verb:--:to make sure the
90 software is free for all its users.
92 This license, the Lesser General Public License, applies to some specially
93 designated software packages\verb:--:typically libraries\verb:--:of the Free Software
94 Foundation and other authors who decide to use it. You can use it too, but we
95 suggest you first think carefully about whether this license or the ordinary
96 General Public License is the better strategy to use in any particular case,
97 based on the explanations below.
99 When we speak of free software, we are referring to freedom of use, not price.
100 Our General Public Licenses are designed to make sure that you have the
101 freedom to distribute copies of free software (and charge for this service if
102 you wish); that you receive source code or can get it if you want it; that you
103 can change the software and use pieces of it in new free programs; and that
104 you are informed that you can do these things.
106 To protect your rights, we need to make restrictions that forbid distributors
107 to deny you these rights or to ask you to surrender these rights. These
108 restrictions translate to certain responsibilities for you if you distribute
109 copies of the library or if you modify it.
111 For example, if you distribute copies of the library, whether gratis or for a
112 fee, you must give the recipients all the rights that we gave you. You must
113 make sure that they, too, receive or can get the source code. If you link
114 other code with the library, you must provide complete object files to the
115 recipients, so that they can relink them with the library after making changes
116 to the library and recompiling it. And you must show them these terms so they
119 We protect your rights with a two-step method: (1) we copyright the library,
120 and (2) we offer you this license, which gives you legal permission to copy,
121 distribute and/or modify the library.
123 To protect each distributor, we want to make it very clear that there is no
124 warranty for the free library. Also, if the library is modified by someone
125 else and passed on, the recipients should know that what they have is not the
126 original version, so that the original author's reputation will not be
127 affected by problems that might be introduced by others.
129 Finally, software patents pose a constant threat to the existence of any free
130 program. We wish to make sure that a company cannot effectively restrict the
131 users of a free program by obtaining a restrictive license from a patent
132 holder. Therefore, we insist that any patent license obtained for a version of
133 the library must be consistent with the full freedom of use specified in this
136 Most GNU software, including some libraries, is covered by the ordinary GNU
137 General Public License. This license, the GNU Lesser General Public License,
138 applies to certain designated libraries, and is quite different from the
139 ordinary General Public License. We use this license for certain libraries in
140 order to permit linking those libraries into non-free programs.
142 When a program is linked with a library, whether statically or using a shared
143 library, the combination of the two is legally speaking a combined work, a
144 derivative of the original library. The ordinary General Public License
145 therefore permits such linking only if the entire combination fits its
146 criteria of freedom. The Lesser General Public License permits more lax
147 criteria for linking other code with the library.
149 We call this license the "Lesser" General Public License because it does
150 Less to protect the user's freedom than the ordinary General Public License.
151 It also provides other free software developers Less of an advantage over
152 competing non-free programs. These disadvantages are the reason we use the
153 ordinary General Public License for many libraries. However, the Lesser
154 license provides advantages in certain special circumstances.
156 For example, on rare occasions, there may be a special need to encourage the
157 widest possible use of a certain library, so that it becomes a de-facto
158 standard. To achieve this, non-free programs must be allowed to use the
159 library. A more frequent case is that a free library does the same job as
160 widely used non-free libraries. In this case, there is little to gain by
161 limiting the free library to free software only, so we use the Lesser General
164 In other cases, permission to use a particular library in non-free programs
165 enables a greater number of people to use a large body of free software. For
166 example, permission to use the GNU C Library in non-free programs enables many
167 more people to use the whole GNU operating system, as well as its variant, the
168 GNU/Linux operating system.
170 Although the Lesser General Public License is Less protective of the users'
171 freedom, it does ensure that the user of a program that is linked with the
172 Library has the freedom and the wherewithal to run that program using a
173 modified version of the Library.
175 The precise terms and conditions for copying, distribution and modification
176 follow. Pay close attention to the difference between a "work based on the
177 library" and a "work that uses the library". The former contains code
178 derived from the library, whereas the latter must be combined with the library
182 \ilink{TERMS AND CONDITIONS}{TOC34}}
184 \index[general]{CONDITIONS!TERMS AND }
185 \index[general]{TERMS AND CONDITIONS }
187 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
189 {\bf 0.} This License Agreement applies to any software library or other
190 program which contains a notice placed by the copyright holder or other
191 authorized party saying it may be distributed under the terms of this Lesser
192 General Public License (also called "this License"). Each licensee is
195 A "library" means a collection of software functions and/or data prepared so
196 as to be conveniently linked with application programs (which use some of
197 those functions and data) to form executables.
199 The "Library", below, refers to any such software library or work which has
200 been distributed under these terms. A "work based on the Library" means
201 either the Library or any derivative work under copyright law: that is to say,
202 a work containing the Library or a portion of it, either verbatim or with
203 modifications and/or translated straightforwardly into another language.
204 (Hereinafter, translation is included without limitation in the term
207 "Source code" for a work means the preferred form of the work for making
208 modifications to it. For a library, complete source code means all the source
209 code for all modules it contains, plus any associated interface definition
210 files, plus the scripts used to control compilation and installation of the
213 Activities other than copying, distribution and modification are not covered
214 by this License; they are outside its scope. The act of running a program
215 using the Library is not restricted, and output from such a program is covered
216 only if its contents constitute a work based on the Library (independent of
217 the use of the Library in a tool for writing it). Whether that is true depends
218 on what the Library does and what the program that uses the Library does.
220 {\bf 1.} You may copy and distribute verbatim copies of the Library's complete
221 source code as you receive it, in any medium, provided that you conspicuously
222 and appropriately publish on each copy an appropriate copyright notice and
223 disclaimer of warranty; keep intact all the notices that refer to this License
224 and to the absence of any warranty; and distribute a copy of this License
225 along with the Library.
227 You may charge a fee for the physical act of transferring a copy, and you may
228 at your option offer warranty protection in exchange for a fee.
230 {\bf 2.} You may modify your copy or copies of the Library or any portion of
231 it, thus forming a work based on the Library, and copy and distribute such
232 modifications or work under the terms of Section 1 above, provided that you
233 also meet all of these conditions:
236 \item {\bf a)} The modified work must itself be a software library.
237 \item {\bf b)} You must cause the files modified to carry prominent notices
238 stating that you changed the files and the date of any change.
239 \item {\bf c)} You must cause the whole of the work to be licensed at no
240 charge to all third parties under the terms of this License.
241 \item {\bf d)} If a facility in the modified Library refers to a function or
242 a table of data to be supplied by an application program that uses the
243 facility, other than as an argument passed when the facility is invoked, then
244 you must make a good faith effort to ensure that, in the event an application
245 does not supply such function or table, the facility still operates, and
246 performs whatever part of its purpose remains meaningful.
248 (For example, a function in a library to compute square roots has a purpose
249 that is entirely well-defined independent of the application. Therefore,
250 Subsection 2d requires that any application-supplied function or table used
251 by this function must be optional: if the application does not supply it, the
252 square root function must still compute square roots.)
254 These requirements apply to the modified work as a whole. If identifiable
255 sections of that work are not derived from the Library, and can be reasonably
256 considered independent and separate works in themselves, then this License,
257 and its terms, do not apply to those sections when you distribute them as
258 separate works. But when you distribute the same sections as part of a whole
259 which is a work based on the Library, the distribution of the whole must be
260 on the terms of this License, whose permissions for other licensees extend to
261 the entire whole, and thus to each and every part regardless of who wrote
264 Thus, it is not the intent of this section to claim rights or contest your
265 rights to work written entirely by you; rather, the intent is to exercise the
266 right to control the distribution of derivative or collective works based on
269 In addition, mere aggregation of another work not based on the Library with
270 the Library (or with a work based on the Library) on a volume of a storage or
271 distribution medium does not bring the other work under the scope of this
275 {\bf 3.} You may opt to apply the terms of the ordinary GNU General Public
276 License instead of this License to a given copy of the Library. To do this,
277 you must alter all the notices that refer to this License, so that they refer
278 to the ordinary GNU General Public License, version 2, instead of to this
279 License. (If a newer version than version 2 of the ordinary GNU General Public
280 License has appeared, then you can specify that version instead if you wish.)
281 Do not make any other change in these notices.
283 Once this change is made in a given copy, it is irreversible for that copy, so
284 the ordinary GNU General Public License applies to all subsequent copies and
285 derivative works made from that copy.
287 This option is useful when you wish to copy part of the code of the Library
288 into a program that is not a library.
290 {\bf 4.} You may copy and distribute the Library (or a portion or derivative
291 of it, under Section 2) in object code or executable form under the terms of
292 Sections 1 and 2 above provided that you accompany it with the complete
293 corresponding machine-readable source code, which must be distributed under
294 the terms of Sections 1 and 2 above on a medium customarily used for software
297 If distribution of object code is made by offering access to copy from a
298 designated place, then offering equivalent access to copy the source code from
299 the same place satisfies the requirement to distribute the source code, even
300 though third parties are not compelled to copy the source along with the
303 {\bf 5.} A program that contains no derivative of any portion of the Library,
304 but is designed to work with the Library by being compiled or linked with it,
305 is called a "work that uses the Library". Such a work, in isolation, is not
306 a derivative work of the Library, and therefore falls outside the scope of
309 However, linking a "work that uses the Library" with the Library creates an
310 executable that is a derivative of the Library (because it contains portions
311 of the Library), rather than a "work that uses the library". The executable
312 is therefore covered by this License. Section 6 states terms for distribution
315 When a "work that uses the Library" uses material from a header file that is
316 part of the Library, the object code for the work may be a derivative work of
317 the Library even though the source code is not. Whether this is true is
318 especially significant if the work can be linked without the Library, or if
319 the work is itself a library. The threshold for this to be true is not
320 precisely defined by law.
322 If such an object file uses only numerical parameters, data structure layouts
323 and accessors, and small macros and small inline functions (ten lines or less
324 in length), then the use of the object file is unrestricted, regardless of
325 whether it is legally a derivative work. (Executables containing this object
326 code plus portions of the Library will still fall under Section 6.)
328 Otherwise, if the work is a derivative of the Library, you may distribute the
329 object code for the work under the terms of Section 6. Any executables
330 containing that work also fall under Section 6, whether or not they are linked
331 directly with the Library itself.
333 {\bf 6.} As an exception to the Sections above, you may also combine or link a
334 "work that uses the Library" with the Library to produce a work containing
335 portions of the Library, and distribute that work under terms of your choice,
336 provided that the terms permit modification of the work for the customer's own
337 use and reverse engineering for debugging such modifications.
339 You must give prominent notice with each copy of the work that the Library is
340 used in it and that the Library and its use are covered by this License. You
341 must supply a copy of this License. If the work during execution displays
342 copyright notices, you must include the copyright notice for the Library among
343 them, as well as a reference directing the user to the copy of this License.
344 Also, you must do one of these things:
347 \item {\bf a)} Accompany the work with the complete corresponding
348 machine-readable source code for the Library including whatever changes were
349 used in the work (which must be distributed under Sections 1 and 2 above);
350 and, if the work is an executable linked with the Library, with the complete
351 machine-readable "work that uses the Library", as object code and/or source
352 code, so that the user can modify the Library and then relink to produce a
353 modified executable containing the modified Library. (It is understood that
354 the user who changes the contents of definitions files in the Library will
355 not necessarily be able to recompile the application to use the modified
357 \item {\bf b)} Use a suitable shared library mechanism for linking with the
358 Library. A suitable mechanism is one that (1) uses at run time a copy of the
359 library already present on the user's computer system, rather than copying
360 library functions into the executable, and (2) will operate properly with a
361 modified version of the library, if the user installs one, as long as the
362 modified version is interface-compatible with the version that the work was
364 \item {\bf c)} Accompany the work with a written offer, valid for at least
365 three years, to give the same user the materials specified in Subsection 6a,
366 above, for a charge no more than the cost of performing this distribution.
367 \item {\bf d)} If distribution of the work is made by offering access to copy
368 from a designated place, offer equivalent access to copy the above specified
369 materials from the same place.
370 \item {\bf e)} Verify that the user has already received a copy of these
371 materials or that you have already sent this user a copy.
374 For an executable, the required form of the "work that uses the Library"
375 must include any data and utility programs needed for reproducing the
376 executable from it. However, as a special exception, the materials to be
377 distributed need not include anything that is normally distributed (in either
378 source or binary form) with the major components (compiler, kernel, and so on)
379 of the operating system on which the executable runs, unless that component
380 itself accompanies the executable.
382 It may happen that this requirement contradicts the license restrictions of
383 other proprietary libraries that do not normally accompany the operating
384 system. Such a contradiction means you cannot use both them and the Library
385 together in an executable that you distribute.
387 {\bf 7.} You may place library facilities that are a work based on the Library
388 side-by-side in a single library together with other library facilities not
389 covered by this License, and distribute such a combined library, provided that
390 the separate distribution of the work based on the Library and of the other
391 library facilities is otherwise permitted, and provided that you do these two
395 \item {\bf a)} Accompany the combined library with a copy of the same work
396 based on the Library, uncombined with any other library facilities. This must
397 be distributed under the terms of the Sections above.
398 \item {\bf b)} Give prominent notice with the combined library of the fact
399 that part of it is a work based on the Library, and explaining where to find
400 the accompanying uncombined form of the same work.
403 {\bf 8.} You may not copy, modify, sublicense, link with, or distribute the
404 Library except as expressly provided under this License. Any attempt otherwise
405 to copy, modify, sublicense, link with, or distribute the Library is void, and
406 will automatically terminate your rights under this License. However, parties
407 who have received copies, or rights, from you under this License will not have
408 their licenses terminated so long as such parties remain in full compliance.
410 {\bf 9.} You are not required to accept this License, since you have not
411 signed it. However, nothing else grants you permission to modify or distribute
412 the Library or its derivative works. These actions are prohibited by law if
413 you do not accept this License. Therefore, by modifying or distributing the
414 Library (or any work based on the Library), you indicate your acceptance of
415 this License to do so, and all its terms and conditions for copying,
416 distributing or modifying the Library or works based on it.
418 {\bf 10.} Each time you redistribute the Library (or any work based on the
419 Library), the recipient automatically receives a license from the original
420 licensor to copy, distribute, link with or modify the Library subject to these
421 terms and conditions. You may not impose any further restrictions on the
422 recipients' exercise of the rights granted herein. You are not responsible for
423 enforcing compliance by third parties with this License.
425 {\bf 11.} If, as a consequence of a court judgment or allegation of patent
426 infringement or for any other reason (not limited to patent issues),
427 conditions are imposed on you (whether by court order, agreement or otherwise)
428 that contradict the conditions of this License, they do not excuse you from
429 the conditions of this License. If you cannot distribute so as to satisfy
430 simultaneously your obligations under this License and any other pertinent
431 obligations, then as a consequence you may not distribute the Library at all.
432 For example, if a patent license would not permit royalty-free redistribution
433 of the Library by all those who receive copies directly or indirectly through
434 you, then the only way you could satisfy both it and this License would be to
435 refrain entirely from distribution of the Library.
437 If any portion of this section is held invalid or unenforceable under any
438 particular circumstance, the balance of the section is intended to apply, and
439 the section as a whole is intended to apply in other circumstances.
441 It is not the purpose of this section to induce you to infringe any patents or
442 other property right claims or to contest validity of any such claims; this
443 section has the sole purpose of protecting the integrity of the free software
444 distribution system which is implemented by public license practices. Many
445 people have made generous contributions to the wide range of software
446 distributed through that system in reliance on consistent application of that
447 system; it is up to the author/donor to decide if he or she is willing to
448 distribute software through any other system and a licensee cannot impose that
451 This section is intended to make thoroughly clear what is believed to be a
452 consequence of the rest of this License.
454 {\bf 12.} If the distribution and/or use of the Library is restricted in
455 certain countries either by patents or by copyrighted interfaces, the original
456 copyright holder who places the Library under this License may add an explicit
457 geographical distribution limitation excluding those countries, so that
458 distribution is permitted only in or among countries not thus excluded. In
459 such case, this License incorporates the limitation as if written in the body
462 {\bf 13.} The Free Software Foundation may publish revised and/or new versions
463 of the Lesser General Public License from time to time. Such new versions will
464 be similar in spirit to the present version, but may differ in detail to
465 address new problems or concerns.
467 Each version is given a distinguishing version number. If the Library
468 specifies a version number of this License which applies to it and "any later
469 version", you have the option of following the terms and conditions either of
470 that version or of any later version published by the Free Software
471 Foundation. If the Library does not specify a license version number, you may
472 choose any version ever published by the Free Software Foundation.
474 {\bf 14.} If you wish to incorporate parts of the Library into other free
475 programs whose distribution conditions are incompatible with these, write to
476 the author to ask for permission. For software which is copyrighted by the
477 Free Software Foundation, write to the Free Software Foundation; we sometimes
478 make exceptions for this. Our decision will be guided by the two goals of
479 preserving the free status of all derivatives of our free software and of
480 promoting the sharing and reuse of software generally.
484 {\bf 15.} BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
485 FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
486 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE
487 THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
488 IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
489 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO
490 THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY
491 PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
494 {\bf 16.} IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
495 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
496 REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
497 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
498 OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO
499 LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
500 THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE),
501 EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
504 END OF TERMS AND CONDITIONS
507 \ilink{How to Apply These Terms to Your New Libraries}{TOC45}}
509 \index[general]{Libraries!How to Apply These Terms to Your New }
510 \index[general]{How to Apply These Terms to Your New Libraries }
513 If you develop a new library, and you want it to be of the greatest possible
514 use to the public, we recommend making it free software that everyone can
515 redistribute and change. You can do so by permitting redistribution under
516 these terms (or, alternatively, under the terms of the ordinary General Public
519 To apply these terms, attach the following notices to the library. It is
520 safest to attach them to the start of each source file to most effectively
521 convey the exclusion of warranty; and each file should have at least the
522 "copyright" line and a pointer to where the full notice is found.
526 {\it one line to give the library's name and an idea of what it does.}
527 Copyright (C) {\it year} {\it name of author}
528 This library is free software; you can redistribute it and/or
529 modify it under the terms of the GNU Lesser General Public
530 License as published by the Free Software Foundation; either
531 version 2.1 of the License, or (at your option) any later version.
532 This library is distributed in the hope that it will be useful,
533 but WITHOUT ANY WARRANTY; without even the implied warranty of
534 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
535 Lesser General Public License for more details.
536 You should have received a copy of the GNU Lesser General Public
537 License along with this library; if not, write to the Free Software
538 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
543 Also add information on how to contact you by electronic and paper mail.
545 You should also get your employer (if you work as a programmer) or your
546 school, if any, to sign a "copyright disclaimer" for the library, if
547 necessary. Here is a sample; alter the names:
551 Yoyodyne, Inc., hereby disclaims all copyright interest in
552 the library "Frob" (a library for tweaking knobs) written
553 by James Random Hacker.
554 {\it signature of Ty Coon}, 1 April 1990
555 Ty Coon, President of Vice
559 That's all there is to it!
561 \elink{GNU's home page}{http://www.gnu.org/home.html}.
563 FSF \& GNU inquiries \& questions to
564 \elink{gnu@gnu.org}{mailto:gnu@gnu.org}. Other
565 \elink{ways to contact}{http://www.gnu.org/home.html\#ContactInfo} the FSF.
567 Comments on these web pages to
568 \elink{webmasters@www.gnu.org}{mailto:webmasters@www.gnu.org}, send other
570 \elink{gnu@gnu.org}{mailto:gnu@gnu.org}.
572 Copyright notice above.
573 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
574 Boston, MA 02110-1301 USA
577 Updated: 27 Nov 2000 paulv