--- wget-1.10.2.ebuild.org 2009-06-01 16:20:28.561077892 +0200 +++ wget-1.10.2.ebuild 2009-06-01 16:23:37.702038158 +0200 @@ -32,7 +32,16 @@ autoconf || die "autoconf failed" } +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