I know, fortran is so clumsy that nobody want to use it. However it is widely used in scientific community. Fortran does not use any "standard" include path. Even if include files (headers or "modules") are in, e.g., /usr/include, it needs -I/usr/include when invoked. A --fortran option that would turn pkg-config behaviour to return also "standard" locations would be useful. augh
You can set the environment variable PKG_CONFIG_ALLOW_SYSTEM_CFLAGS to keep pkg-config from stripping the standard include paths. Still, I can see how it would be helpful to be able to specify a language specific behavior from pkg-config. Either with a --mode=fortran (a la libtool), or by specifying the language/mode in the .pc file. I'll keep this open as a possible future enhancement, but for now I'm OK with using environment variables to get the behavior you want.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pkg-config/pkg-config/issues/22.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.