Would it possible to ship a pkgconfig .pc file with mbedtls? There is an upstream issue about that, but unfortunately for a longer time no progress. But there is a fresh PR: https://github.com/Mbed-TLS/mbedtls/pull/8691
Adding downstream .pc files is a controversial topic because it makes Gentoo "weird" if someone develops software on Gentoo and then finds it doesn't work on other distros...
(In reply to Sam James from comment #1) > Adding downstream .pc files is a controversial topic because it makes Gentoo > "weird" if someone develops software on Gentoo and then finds it doesn't > work on other distros... Funnily, there is already software outside of Gentoo, which searches for pkgconfig files of mbedtls.
I would wait for changes in the upstream. Implementing Gentoo-specific solutions may cause compatibility issues. Most of the projects I've checked either use the cmake subproject or try to use their own implementations of the FindMbed.cmake module. The upstream implementation of the cmake project is also quite specific, and I plan to make a few changes in upstream to make the installation of the package more consistent.
Thanks!