--- clang-3.1-r5.ebuild.orig 2012-08-30 19:01:29.000000000 +0900 +++ clang-3.1-r5.ebuild 2012-11-25 20:38:14.000000000 +0900 @@ -75,7 +75,11 @@ -i tools/clang/test/lit.cfg || die "test path sed failed" # Automatically select active system GCC's libraries, bugs #406163 and #417913 - epatch "${FILESDIR}"/${P}-gentoo-runtime-gcc-detection-v3.patch + if use elibc_FreeBSD ; then + epatch "${FILESDIR}"/${P}-gentoo-runtime-gcc-detection.patch + else + epatch "${FILESDIR}"/${P}-gentoo-runtime-gcc-detection-v3.patch + fi # Fix search paths on FreeBSD, bug #409269 epatch "${FILESDIR}"/${P}-gentoo-freebsd-fix-lib-path.patch