Course contentsShow
← Software Engineering
Lesson 1867 of 1,93354. Software Licensing and Intellectual PropertyFree lesson

The LGPL and Weak Copyleft

How the Lesser GPL allows linking with proprietary software while keeping the library itself open source.

The LGPL and Weak Copyleft

What you'll learn: How the Lesser GPL allows linking with proprietary software while keeping the library itself open source.

The Problem GPL Solves—and Creates

The GNU General Public License (GPL) requires any software that incorporates GPL code to also be GPL-licensed and open source. This "strong copyleft" protects software freedom but creates a dilemma: useful libraries become radioactive to proprietary software developers who can't or won't open-source their entire application.

Enter the LGPL: Weak Copyleft

The Lesser GPL (LGPL) introduces "weak copyleft"—a middle ground between permissive licenses and the GPL. It allows proprietary software to use LGPL libraries without triggering copyleft obligations, as long as they're used through a clean interface (typically dynamic linking).

How It Works

Think of the LGPL like a semi-permeable membrane:

  • Changes to the LGPL library itself must remain open source under LGPL
  • Applications that merely link to the library can remain proprietary

The key distinction is modification vs. usage. If you improve the LGPL library, you must share those improvements. If you just call its functions from your proprietary app, you don't have to open-source your application.

Real-World Example

Many popular libraries use LGPL: GTK (GUI toolkit), glibc (GNU C library), and others. A company can build a closed-source application using GTK for its interface without releasing their application's source code—but if they modify GTK itself, those modifications must be shared.

The Catch

Users must be able to re-link your application with a modified version of the LGPL library. This typically means dynamic linking, not static compilation.

Key Takeaway: The LGPL enables open-source libraries to be widely adopted in both open and proprietary projects, protecting the library's freedom while allowing broader commercial use than the GPL permits.