On Thu, 22 Jun 2023, Dustin Gadal wrote:
The following two headers files (among others) are included when compiling
LLVM for x64 Windows using the MinGW-w64 headers:
propkeydef.h
rpcsal.h
These are copyrighted by Maarten Lankhorst and Francois Gouget under the
LGPL 2.1. As far as I can tell, these are the only two MinGW-w64 headers
currently needed by LLVM that are licensed under some version of the GPL or
LGPL (and don't include the GCC Runtime Library Exception v3.1).
Thanks for investigating such issues.
Overall, I would say it's kinda unclear what the implications are for
LGPL'd headers in this context - as the code the headers describe (the
Windows system DLLs) certainly isn't LGPL, and the LGPL of a header itself
doesn't affect the potentially closed source thing that links against it.
I guess it mostly would come up to having to redistribute those headers.
I've been working on putting together an x64 c++ toolchain for a Windows
host and target using LLVM and MinGW-w64 that's licensed in a way that's
compatible with commercial use.
Are you aware of llvm-mingw, https://github.com/mstorsjo/llvm-mingw?
It certainly is meant to be suitable for commercial use - however I hadn't
audited the licenses of these headers, as I was under the impression that
mingw-w64 in general was suitable for such use.
I've had to reimplement those two files in order to achieve that, and
would like to provide those implementations to the MinGW-w64 project
released to the public domain.
Does that sound reasonable? If so, I can submit a patch.
Avoiding/reducing the use of LGPL in mingw-w64 certainly sounds like a
good way to go, so patches would indeed be appreciated!
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public