Prune redundant libdeps.