On Wed, 16 Jul 2025 at 10:06, Qifan.Zhou via Gcc <gcc@gcc.gnu.org> wrote: > > Dear GCC Team,
Please don't email both gcc@gcc.gnu.org and gcc-h...@gcc.gnu.org, pick the appropriate one. You're not discussing development of GCC so this belongs on the gcc-help list. Anyway ... > I hope this message finds you well. I'm writing to seek official > clarification regarding the use of GCC compilers in our proprietary, > closed-source commercial software development. > Our specific use case involves: > > 1. > Using GCC executables (gcc.exe<https://gcc.exe/>, g++.exe, etc.) to compile > and link our C/C++ source code > 2. > Dynamically linking to GCC runtime libraries (libstdc++, libgcc, etc.) > 3. > Potential distribution of our compiled binaries to customers without source > code > > Based on our understanding of the GPL and LGPL licenses: > > * > We believe that simply using GCC to compile our software doesn't require us > to open-source our code > * > Dynamic linking to LGPL-licensed runtime libraries appears permissible for > proprietary software > * > However, we want to ensure full compliance with all licensing requirements Nobody on this list is going to give you legal advice. You should read https://www.gnu.org/licenses/gcc-exception-3.1-faq.html Quoting from that document: "However, the FSF decided long ago to allow developers to use GCC's libraries to compile any program, regardless of its license." "Therefore, these libraries have always had license exceptions that allow people to distribute the object code GCC produces under any license." Read the full document for the full details and restrictions that apply if you're using a modified GCC. > > Could you please confirm: > > 1. > Whether this usage pattern complies with GCC's licensing terms > 2. > If distributing our compiled binaries requires any additional steps to > maintain compliance > 3. > Whether there are any special considerations when using GCC in a MinGW-like > configuration > > We greatly respect the work of the GCC community and want to ensure we're > using the compiler in full compliance with its licensing terms. Your guidance > would be invaluable in helping us navigate these requirements. > Thank you for your time and consideration. I look forward to your response. > Best regards, >