Bug 65299 - --cflags should return also default include dir for use with fortran
Summary: --cflags should return also default include dir for use with fortran
Status: RESOLVED MOVED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: pkg-config
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-03 13:07 UTC by augh
Modified: 2018-08-25 12:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description augh 2013-06-03 13:07:03 UTC
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
Comment 1 Dan Nicholson 2013-06-08 00:52:19 UTC
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.
Comment 2 GitLab Migration User 2018-08-25 12:54:18 UTC
-- 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.