I was wondering if it could be like the gFortran from Equation. It has a x86_64-w64-mingw32 folder. All the prebuilt libs are under it. When you write your Fortran code, just link the libs in there. Even no need to specify the -I & -L in compile command.
Maybe a Lfortran_libs project. Put all packages Lfortran can compile in it.
Take NetCDF as an example, put its source under D:\Lfortran_libs\src\NetCDF. Build it and install it to D:\lfortran\x86_64-w64 along side D:\lfortran\lib and D:\lfortran\bin
It could also has a prebuilt Lfortran_libs. After download, just unzip at D:\lfortran\x86_64-w64. No need to worry about compiling all the libs.
One option to do that is to package a full distribution using conda internally, which has all the dependencies on all platforms and is well tested on all platforms. But users would not necessarily see it, they would just see a giant tarball that you unpack (or some kind of an installer).
@Cean would that satisfy what you are looking for?
Ok. Let’s focus on the requirements, and we’ll figure out the right solution. Is the requirement to have a windows installer that has all the dependencies included, so everything just works?