I recently figured out what needed to be linked to get GLFW working on Linux and Mac, and I noticed that GLFW uses pthread. I'd like to use it in an open source game engine with a permissive (non-copyleft) license, but pthread is under LGPL. Doesn't this mean that your static library might as well be licensed under LGPL, since linking it requires linking pthread as well?
If there are any alternatives to statically linking pthread, please let me know. I haven't been able to get my simple example to compile without doing so.
EDIT: Just realized, I've been dynamically linking pthread this whole time: -l chooses shared libraries over static ones.
Always link pthreads and all other system libraries dynamically.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.