Link libzfs only to libraries that need it
meson build system for
libzfs to every library that requires
libspl (or just
libspl includes without the library), as
zfs provides a PkgConfig file for
libzfs and using that is the easiest way.
The autotools build system of zfs-with-beadm hardcodes include paths and library command line arguments for those libraries (pointing to the includes/libraries in the same repository) and has more fine-grained dependencies.
The following discussion from !33 (merged) should be addressed: