--- /usr/portage/www-servers/thttpd/thttpd-2.25b-r8.ebuild 2010-10-29 00:25:24.000000000 +0200 +++ thttpd-2.25b-r8.ebuild 2011-06-30 20:49:14.000000000 +0200 @@ -41,7 +41,9 @@ src_configure() { use static && append-ldflags -static - econf || die "econf failed" + + CC="$(tc-getCC)" \ + econf || die "econf failed" } src_compile() {