pkgconfig returns `-fopenmp` option
The pkgconfig generated by this package includes -fopenmp flag for library. So that when pkg-config is run like so:
$ pkg-config --libs openblas
The returned output is: -fopenmp -lopenblas.
This should be considered as an error because -fopenmp is not a linking flag (Not something you would pass to ld).
I came across this problem when compiling a D project using dub with the openblas library. There dub tries to use pkg-config to figure out linking flags, tries to add -fopenmp which then causes an error because -fopenmpis not a linking flag and has no meaning in D.
How to reproduce
- Install openblas with
pacman -S openblas - Run
pkg-config --libs openblas
Output
-fopenmp -lopenblas
Expected output
-lopenblas