In relation to bug 58579 the openssh lpk patch has been directly included in stable portage, the proposed ebuild included the '-lldap' flag with ${myconf} redefinition adding "--with-libs=--ldap", the commited ebuild instead uses append-ldflags for the job. That sounds nice in theory but it's not working (maybe openssh resets LDFLAGS) so emerging stable openssh with ldap USE flag fails.
does --with-ldflags="${LDFLAGS}" work ?
Created attachment 60061 [details, diff] openssh-4.0_p1-r1.ebuild patch Had the same problem and created this ebuild patch based on SpanKY's suggestion. Not sure if this is exactly what you meant SpanKY but it does work.
fixed in cvs
*** Bug 94394 has been marked as a duplicate of this bug. ***