fpm can compile
.c files as well as Fortran files, but it doesn’t appear to respect the
--flag argument when doing so. For example, if I say
fpm build --flag '-fPIC', then
-fPIC will be applied when compiling Fortran files, but not when compiling C files. Is there a workaround for this to get
fpm to apply the flag when compiling C files as well?
I’m using fpm 0.4. Thanks!