New comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/29858#issuecomment-810501420 Comment: Same can be done by adding solibs to `common/shlibs` at end of file, see `elif [ "$rdepcnt" -gt 1 ]` branch. `soname=$(find ${PKGDESTDIR} -name "$f")` is run only when solib isn't listed in `common/shlibs`.