--- wget-1.11.2.ebuild.org 2009-06-01 16:28:47.676579769 +0200 +++ wget-1.11.2.ebuild 2009-06-01 16:30:37.572569746 +0200 @@ -24,7 +24,16 @@ epatch "${FILESDIR}"/${PN}-1.11-linking.patch } +check_for_kerberos() { + if built_with_use dev-libs/openssl kerberos; then + eerror "Please remove the static USE flag set for wget" + die "wget can't be statically linked due to missing static kerberos libs" + fi +} + src_compile() { + use ssl && use static && check_for_kerberos + # openssl-0.9.8 now builds with -pthread on the BSD's use elibc_FreeBSD && use ssl && append-ldflags -pthread