Doesn't build on macOS anymore
When trying to build 02c66e5a using GCC 8.1 on macOS I get the error
gfortran: error: -bundle not allowed with -dynamiclib
I think the root cause is this line, because on macOS apparently a "bundle" is different and incompatible with a "shared" library. Removing "shared" seems to fix it.