135
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, Fe
b
r
u
ary 1999
Copyright © 1991, 1999 Free Soft
w
are Fo
u
ndation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
E
v
eryone is permitted to copy and distri
bu
te
v
er
b
atim copies of this license doc
u
ment,
bu
t changing it is not allo
w
ed.
[This is the first released
v
ersion of the Lesser GPL. It also co
u
nts as the s
u
ccessor of the G
N
U Li
b
rary P
ub
lic License,
v
ersion 2, hence the
v
ersion n
u
m
b
er 2.1.]
Preamble
The licenses for most soft
w
are are designed to take a
w
ay yo
u
r freedom to
share and change it. By contrast, the G
N
U General P
ub
lic Licenses are
intended to g
u
arantee yo
u
r freedom to share and change free soft
w
are— to
make s
u
re the soft
w
are is free for all its
u
sers.
This license, the Lesser General P
ub
lic License, applies to some specially
designated soft
w
are packages—typically li
b
raries—of the Free Soft
w
are
Fo
u
ndation and other a
u
thors
w
ho decide to
u
se it. Yo
u
can
u
se it too,
bu
t
w
e
s
u
ggest yo
u
first think caref
u
lly a
b
o
u
t
w
hether this license or the ordinary
General P
ub
lic License is the
b
etter strategy to
u
se in any partic
u
lar case,
b
ased on the explanations
b
elo
w
.
W
hen
w
e speak of free soft
w
are,
w
e are referring to freedom of
u
se, not price.
O
u
r General P
ub
lic Licenses are designed to make s
u
re that yo
u
ha
v
e the
freedom to distri
bu
te copies of free soft
w
are (and charge for this ser
v
ice if yo
u
w
ish); that yo
u
recei
v
e so
u
rce code or can get it if yo
u
w
ant it; that yo
u
can
change the soft
w
are and
u
se pieces of it in ne
w
free programs; and that yo
u
are informed that yo
u
can do these things.
To protect yo
u
r rights,
w
e need to make restrictions that for
b
id distri
bu
tors to
deny yo
u
these rights or to ask yo
u
to s
u
rrender these rights. These
restrictions translate to certain responsi
b
ilities for yo
u
if yo
u
distri
bu
te copies
of the li
b
rary or if yo
u
modify it.
For example, if yo
u
distri
bu
te copies of the li
b
rary,
w
hether gratis or for a fee,
yo
u
m
u
st gi
v
e the recipients all the rights that
w
e ga
v
e yo
u
. Yo
u
m
u
st make
s
u
re that they, too, recei
v
e or can get the so
u
rce code. If yo
u
link other code
w
ith the li
b
rary, yo
u
m
u
st pro
v
ide complete o
b
ject files to the recipients, so
that they can relink them
w
ith the li
b
rary after making changes to the li
b
rary
and recompiling it. And yo
u
m
u
st sho
w
them these terms so they kno
w
their
rights.
W
e protect yo
u
r rights
w
ith a t
w
o-step method: (1)
w
e copyright the li
b
rary,
and (2)
w
e offer yo
u
this license,
w
hich gi
v
es yo
u
legal permission to copy,
distri
bu
te and/or modify the li
b
rary.
To protect each distri
bu
tor,
w
e
w
ant to make it
v
ery clear that there is no
w
arranty for the free li
b
rary. Also, if the li
b
rary is modified
b
y someone else
and passed on, the recipients sho
u
ld kno
w
that
w
hat they ha
v
e is not the
original
v
ersion, so that the original a
u
thor’s rep
u
tation
w
ill not
b
e affected
b
y
pro
b
lems that might
b
e introd
u
ced
b
y others.
Finally, soft
w
are patents pose a constant threat to the existence of any free
program.
W
e
w
ish to make s
u
re that a company cannot effecti
v
ely restrict the
u
sers of a free program
b
y o
b
taining a restricti
v
e license from a patent holder.
Therefore,
w
e insist that any patent license o
b
tained for a
v
ersion of the
li
b
rary m
u
st
b
e consistent
w
ith the f
u
ll freedom of
u
se specified in this license.
Most G
N
U soft
w
are, incl
u
ding some li
b
raries, is co
v
ered
b
y the ordinary G
N
U
General P
ub
lic License. This license, the G
N
U Lesser General P
ub
lic
License, applies to certain designated li
b
raries, and is
qu
ite different from the
ordinary General P
ub
lic License.
W
e
u
se this license for certain li
b
raries in
order to permit linking those li
b
raries into non-free programs.
W
hen a program is linked
w
ith a li
b
rary,
w
hether statically or
u
sing a shared
li
b
rary, the com
b
ination of the t
w
o is legally speaking a com
b
ined
w
ork, a
deri
v
ati
v
e of the original li
b
rary. The ordinary General P
ub
lic License
therefore permits s
u
ch linking only if the entire com
b
ination fits its criteria of
freedom. The Lesser General P
ub
lic License permits more lax criteria for
linking other code
w
ith the li
b
rary.
W
e call this license the “Lesser” General P
ub
lic License
b
eca
u
se it does Less
to protect the
u
ser’s freedom than the ordinary General P
ub
lic License. It also
pro
v
ides other free soft
w
are de
v
elopers Less of an ad
v
antage o
v
er competing
non-free programs. These disad
v
antages are the reason
w
e
u
se the ordinary
General P
ub
lic License for many li
b
raries. Ho
w
e
v
er, the Lesser license
pro
v
ides ad
v
antages in certain special circ
u
mstances.
For example, on rare occasions, there may
b
e a special need to enco
u
rage
the
w
idest possi
b
le
u
se of a certain li
b
rary, so that it
b
ecomes a de-facto
standard. To achie
v
e this, non-free programs m
u
st
b
e allo
w
ed to
u
se the
li
b
rary. A more fre
qu
ent case is that a free li
b
rary does the same jo
b
as
w
idely
u
sed non-free li
b
raries. In this case, there is little to gain
b
y limiting the free
li
b
rary to free soft
w
are only, so
w
e
u
se the Lesser General P
ub
lic License.
In other cases, permission to
u
se a partic
u
lar li
b
rary in non-free programs
ena
b
les a greater n
u
m
b
er of people to
u
se a large
b
ody of free soft
w
are. For
example, permission to
u
se the G
N
U C Li
b
rary in non-free programs ena
b
les
many more people to
u
se the
w
hole G
N
U operating system, as
w
ell as its
v
ariant, the G
N
U/Lin
u
x operating system.
Altho
u
gh the Lesser General P
ub
lic License is Less protecti
v
e of the
u
sers’
freedom, it does ens
u
re that the
u
ser of a program that is linked
w
ith the
Li
b
rary has the freedom and the
w
here
w
ithal to r
u
n that program
u
sing a
modified
v
ersion of the Li
b
rary.
The precise terms and conditions for copying, distri
bu
tion and modification
follo
w
. Pay close attention to the difference
b
et
w
een a “
w
ork
b
ased on the
li
b
rary” and a “
w
ork that
u
ses the li
b
rary”. The former contains code deri
v
ed
from the li
b
rary,
w
hereas the latter m
u
st
b
e com
b
ined
w
ith the li
b
rary in order
to r
u
n.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING,
DISTRIBUTION AND MODIFICATION
0.
This License Agreement applies to any soft
w
are li
b
rary or other program
w
hich contains a notice placed
b
y the copyright holder or other a
u
thorized
party saying it may
b
e distri
bu
ted
u
nder the terms of this Lesser General
P
ub
lic License (also called “this License”). Each licensee is addressed as
“yo
u
”.
A “li
b
rary” means a collection of soft
w
are f
u
nctions and/or data prepared
so as to
b
e con
v
eniently linked
w
ith application programs (
w
hich
u
se
some of those f
u
nctions and data) to form exec
u
ta
b
les.
The “Li
b
rary”,
b
elo
w
, refers to any s
u
ch soft
w
are li
b
rary or
w
ork
w
hich has
b
een distri
bu
ted
u
nder these terms. A “
w
ork
b
ased on the Li
b
rary” means
either the Li
b
rary or any deri
v
ati
v
e
w
ork
u
nder copyright la
w
: that is to
say, a
w
ork containing the Li
b
rary or a portion of it, either
v
er
b
atim or
w
ith
modifications and/or translated straightfor
w
ardly into another lang
u
age.
(Hereinafter, translation is incl
u
ded
w
itho
u
t limitation in the term
“modification”.)
“So
u
rce code” for a
w
ork means the preferred form of the
w
ork for making
modifications to it. For a li
b
rary, complete so
u
rce code means all the
so
u
rce code for all mod
u
les it contains, pl
u
s any associated interface
definition files, pl
u
s the scripts
u
sed to control compilation and installation
of the li
b
rary.
Acti
v
ities other than copying, distri
bu
tion and modification are not co
v
ered
b
y this License; they are o
u
tside its scope. The act of r
u
nning a program
u
sing the Li
b
rary is not restricted, and o
u
tp
u
t from s
u
ch a program is
co
v
ered only if its contents constit
u
te a
w
ork
b
ased on the Li
b
rary
(independent of the
u
se of the Li
b
rary in a tool for
w
riting it).
W
hether that
is tr
u
e depends on
w
hat the Li
b
rary does and
w
hat the program that
u
ses
the Li
b
rary does.
1.
Yo
u
may copy and distri
bu
te
v
er
b
atim copies of the Li
b
rary’s complete
so
u
rce code as yo
u
recei
v
e it, in any medi
u
m, pro
v
ided that yo
u
conspic
u
o
u
sly and appropriately p
ub
lish on each copy an appropriate
copyright notice and disclaimer of
w
arranty; keep intact all the notices
that refer to this License and to the a
b
sence of any
w
arranty; and
distri
bu
te a copy of this License along
w
ith the Li
b
rary.
Yo
u
may charge a fee for the physical act of transferring a copy, and yo
u
may at yo
u
r option offer
w
arranty protection in exchange for a fee.
2.
Yo
u
may modify yo
u
r copy or copies of the Li
b
rary or any portion of it,
th
u
s forming a
w
ork
b
ased on the Li
b
rary, and copy and distri
bu
te s
u
ch
modifications or
w
ork
u
nder the terms of Section 1 a
b
o
v
e, pro
v
ided that
yo
u
also meet all of these conditions:
a)
The modified
w
ork m
u
st itself
b
e a soft
w
are li
b
rary.
b)
Yo
u
m
u
st ca
u
se the files modified to carry prominent notices stating
that yo
u
changed the files and the date of any change.
c)
Yo
u
m
u
st ca
u
se the
w
hole of the
w
ork to
b
e licensed at no charge to
all third parties
u
nder the terms of this License.
d)
If a facility in the modified Li
b
rary refers to a f
u
nction or a ta
b
le of data
to
b
e s
u
pplied
b
y an application program that
u
ses the facility, other
than as an arg
u
ment passed
w
hen the facility is in
v
oked, then yo
u
m
u
st make a good faith effort to ens
u
re that, in the e
v
ent an
application does not s
u
pply s
u
ch f
u
nction or ta
b
le, the facility still
operates, and performs
w
hate
v
er part of its p
u
rpose remains
meaningf
u
l.
(For example, a f
u
nction in a li
b
rary to comp
u
te s
qu
are roots has a
p
u
rpose that is entirely
w
ell-defined independent of the application.
Therefore, S
ub
section 2d re
qu
ires that any application-s
u
pplied
f
u
nction or ta
b
le
u
sed
b
y this f
u
nction m
u
st
b
e optional: if the
application does not s
u
pply it, the s
qu
are root f
u
nction m
u
st still
comp
u
te s
qu
are roots.)
These re
qu
irements apply to the modified
w
ork as a
w
hole. If identifia
b
le
sections of that
w
ork are not deri
v
ed from the Li
b
rary, and can
b
e
reasona
b
ly considered independent and separate
w
orks in themsel
v
es,
then this License, and its terms, do not apply to those sections
w
hen yo
u
distri
bu
te them as separate
w
orks. B
u
t
w
hen yo
u
distri
bu
te the same