summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/pkg-config-fix-static-only.md
blob: 31cd389401c05780785c1472d5fbd02c27fa9644 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
## Improved generation of pkg-config files for static only libraries.

Previously pkg-config files generated by the pkgconfig modules for static libraries
with dependencies could only be used in a dependencies with `static: true`.

Now the generated file contains the needed dependencies libraries directly within
`Requires` and `Libs` for build static libraries passed via the `libraries` keyword
argument.

Projects that install both a static and a shared version of a library should use
the result of `both_libraries` to the pkg config file generator or use
configure_file for more complicated setups.