hooks/generate-runtime-deps: if required shlib is provided by any subpkg, use it.