-
Notifications
You must be signed in to change notification settings - Fork 109
Fortran packages using pkg-config #445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Feel free to add more packages to the first post. |
stdlib does provide a pc file and even some more or less transparent logic how it is generated: |
Related to FFTW and also discussion #447, the default installation of FFTW will place a set of source files containing the interfaces to the C routines in
Now to bypass the whole issue of shipping Fortran modules, the FFTW manual recommends that users who want to import FFTW routines as a module, should define one themselves:
However, since Also the system installed
|
We would have to add
|
It looks like you are using On my installation:
So the different command line options of This might also affect your reply to Milan in #439 (comment) |
Arch Linux uses pkgconf (1.7.3) with symlinking it as pkg-config. This means we can't workaround this issue with GFortran by using pkg-config options because they won't be supported in all implementations. Our alternatives for GFortran would be
|
Another solution for FFTW3 with GFortran would be using the C preprocessor instead of the Fortran module fftw3
use, intrinsic :: iso_c_binding
#include "fftw3.f03"
end module fftw3 |
That works, but the file needs to given the Another option would be to offer an fftw3 module fpm package in a fortran-lang repository. |
Should this be of use, sometime ago I wrote a module to read pkg-config files, including substitution of macros. |
Uh oh!
There was an error while loading. Please reload this page.
I've created this issue to keep track of some of the (scientific) packages which provide a pkg-config file and could be candidates for testing with fpm.
You can see a list of package files already installed on your system with the command
pkg-config --list-all
.The text was updated successfully, but these errors were encountered: