News for hackers. Stuff that matters.
Re:Tips for C libraries on GNU/Linux by antirez on Wednesday November 14, 2012 @06:25AM (#4782921)
+1, also, don't use GPL but BSD-alike licenses...
Re:Tips for C libraries on GNU/Linux by stefantalpalaru on Wednesday November 14, 2012 @08:17AM (#4783153)
If you don't want to choose between extreme approaches take a look at the Mozilla Public License (MPL): http://www.mozilla.org/MPL/2.0/FAQ.html

"The MPL's 'file-level' copyleft is designed to encourage contributors to share modifications they make to your code, while still allowing them to combine your code with code under other licenses (open or proprietary) with minimal restrictions."

Re:Tips for C libraries on GNU/Linux by JoshTriplett on Wednesday November 14, 2012 @11:20AM (#4783964)
Bad idea to choose a GPL-incompatible license for a library, though. If you like the MPL, use it in a dual-license with the GPL or LGPL, like cairo does. Better yet, just use the LGPL or GPL.
Re:Tips for C libraries on GNU/Linux by stefantalpalaru on Wednesday November 14, 2012 @11:36AM (#4784039)
MPL-2.0 is not (L)GPL incompatible. See http://www.mozilla.org/MPL/2.0/FAQ.html#mpl-and-lgpl

With some software (Go code that is always statically linked by the official toolchain comes to mind) you are shooting yourself in the foot with GPL and even LGPL.

Re:Tips for C libraries on GNU/Linux by ksherlock on Wednesday November 14, 2012 @01:14PM (#4784588)
LGPL code can be statically linked. However, you need to provide your other object files (so the LGPL part can be replaced and re-linked).
Re:Tips for C libraries on GNU/Linux by stefantalpalaru on Wednesday November 14, 2012 @02:20PM (#4784983)
It's complicated. To be able to modify, recompile and relink the LGPL part you would have to use the exact version of the go toolchain with which the commercial part was compiled with. Not to mention having to come up with a custom build process that puts the object files in the distributed archive...