I am starting a software project that I want to have the option to keep it proprietary. However, since I generally use a Linux environment, I want to know: How do people write proprietary software in Linux and not violate the GPL/LGPL/etc licenses that seem to restrict uses of libraries needed to build the project?

Also, does using an unmodified LGPL library in my code require releasing it as open-source (I understand that open-source and proprietary are different beasts)?

And I know I'm going to be branded a heathen for asking, but can I use unmodified open-source libraries in my project but still keep the code that is mine closed-source?

  • I know it is 2 years later, and you may already have made decisions... but... check this Dec 16, 2014 at 22:59

2 Answers 2


In general, when writing software that uses third-party libraries you need to be aware of the licences under which the third-party software is released and how that affects your own software.

The GPL licence is considered an infectious licence in the sense that if your project includes GPL-licensed code in any way, your code must also be released under the GPL licence (possibly in addition to other licenses).

The LGPL licence was created to take away the infectiousness of the GPL licence. Roughly speaking, if you use a LGPL licensed library in your project you can use any licence you like for your own code (even a closed-source one) as long as the end-user can replace the LGPL licensed library with a different, compatible, one.

For other licenses, you will have to check the licence itself, but in general, MIT and BSD-derived licenses tend to be more permissive than (L)GPL.

Disclaimer: IANL, TINLA

  • "I am not a lawyer, this is not legal advice"?
    – Joe Z.
    Dec 23, 2012 at 15:00
  • @JoeZeng: Correct. Dec 23, 2012 at 22:36
  • Thanks! I'll have to read the license terms a bit closer.
    – NickO
    Dec 23, 2012 at 23:42

There is an interesting publication on this topic:


Maria Kechagia, Diomidis Spinellis, and Stephanos Androutsellis-Theotokis. Open source licensing across package dependencies. In Costas Vassilakis and Nikolaos Tselikas, editors, PCI 2010: Proceedings of 14th Panhelenic Conference on Informatics, pages 27–32, Los Alamitos, CA, USA, September 2010. IEEE Computer Society.


Licensing dependencies among open source software (oss) packages reveal a lot about software compatibility relationships and the practicalities of oss licensing. There is, however, limited information on these in the literature. In this paper, we discuss various aspects of oss licensing, and we present an empirical study on FreeBSD ports collections concerning their licensing dependencies, in an attempt to identify specific patterns. Our results highlight different types of dependencies, that could be used to explain, or even guide the license selection process of oss projects.

Here is the doi number doi:10.1109/PCI.2010.28


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.