Package: libsrtp2-dev Version: 2.4.2-2 A developer package depends on its runtime library/package. The runtime library in turn depends on other used libraries, which can be checked via ldd. Additionally, the developer package depends on other -dev packages if one of its public headers <include> a header of that other -dev packages.
Because of that, why does libsrtp2-dev depend not just on its runtime package "libsrtp2-1" but also on "libnss3-dev" (and "libnspr4-dev")? In libsrtp2-dev, no header file includes one of those headers. However, pkg-config references those libraries, both in --cflags and --libs. Consequently, if I use pkg-config to find the libraries and headers of libsrtp2, yes, those two -dev packages are required. However, why are those mentioned in pkg-config? Or has that to do with the static library? I looked only into the shared library.