--- wget-1.11.3.ebuild.org 2009-06-01 16:37:01.673077602 +0200 +++ wget-1.11.3.ebuild 2009-06-01 16:40:31.040566629 +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