Skip to content

Conversation

@Neumann-A
Copy link
Contributor

pkgconfig files for lapack needs to add implicitly linked Fortran libraries.
Otherwise the pc file is not useable in C/CXX projects.

(Link errors observed in paraview through dlib, dlib uses pkgconfig to find lapack and is thus missing the -lgfortran flags etc)

Resulting pc file:

prefix=${pcfiledir}/../..
libdir=${prefix}/lib
includedir=${prefix}/include

Name: LAPACK
Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage
Version: 3.12.0
URL: http://www.netlib.org/lapack/

Libs: "-L${libdir}" -llapack -lgfortran -lquadmath -lm
Requires: blas

Previously:

prefix=${pcfiledir}/../..
libdir=${prefix}/lib
includedir=${prefix}/include

Name: LAPACK
Description: FORTRAN reference implementation of LAPACK Linear Algebra PACKage
Version: 3.12.0
URL: http://www.netlib.org/lapack/

Libs: "-L${libdir}" -llapack
Requires: blas

@JavierMatosD JavierMatosD merged commit f20b0fb into microsoft:master Oct 13, 2025
18 checks passed
@Neumann-A Neumann-A deleted the fix-lapack-reference-pc-files branch October 13, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants