Regarding GPL software use in a commercial project, I have the following situation:
I would like to commercially distribute an Excel-Macro application, which uses a GPL licensed software (G77 compiler) and some Fortran codes. The Macro and Fortran codes are all written by myself. No changes are made to any of the GPL software.
My understanding of GPL is that if I want to commercially distribute all above files together, I would have to make all (Macro and Fortran codes) available as source code.
My goal is to protect my own source code (or at least the Fortran files). However, I guess that the GPL license is intended to exactly avoid that.
Therefore I consider following two scenarios as work-around:
1) I provide "scrambled" source code. Thus, actual source code but with all variable/function names given random names. However, that might be prohibited by the GPL license, stating that:
The "source code" for a work means the preferred form of the work for making modifications to it.
2) I distribute two individual packages: One containing my own codes (as closed-source), the other containing only the GPL software. The end-user would just need to later on move the GPL software into the appropriate folder in my own codes.
My questions are:
A) Is any of above work-arounds legal fine?
B) Is there maybe any other way to achieve my goal besides above workarounds?
Thanks a lot!