--- openssh-7.6_p1-r5.ebuild.gentoo 2018-03-13 13:08:46.000000000 -0600 +++ openssh-7.6_p1-r5.ebuild 2018-04-19 16:27:16.779953770 -0600 @@ -198,7 +198,7 @@ # We apply the ldap patch conditionally, so can't pass --without-ldap # unconditionally else we get unknown flag warnings. $(use ldap && use_with ldap) - $(use_with ldns) + $(use_with ldns ldns "${EROOT}") $(use_with libedit) $(use_with pam) $(use_with pie)