The openssl check in openssh explicitly passes "-lcrypto" to the linker. The ebuild currently patches the configure script with this line: > sed -i "s:-lcrypto:$(pkg-config --libs openssl):" configure{,.ac} || die Problem here, is that the host pkg-config is called thus adding flags for host openssl. For cross-compilation e.g. > sed -i "s:-lcrypto:$(cross-pkg-config --libs openssl):" configure{,.ac} || die can actually be used for a successful build. Problem: this is only installed by crossdev. I don't know if there is a way to detect and call the correct pkg-config. Ideas? Reproducible: Always
this is already fixed in newer openssh