--- freebsd-sources-8.2.ebuild.orig 2011-07-06 15:09:18.000000000 +0900 +++ freebsd-sources-8.2.ebuild 2012-03-13 20:49:26.981676364 +0900 @@ -65,6 +65,11 @@ # as undefined references to ld's commandline to get them. # Without this kernel modules will not load. epatch "${FILESDIR}/${PN}-7.1-binutils_link.patch" + + # workaround a kernel panic for amd64-fbsd, bug #408019 + if use amd64-fbsd ; then + sed -e "s:-O2:-O:g" -i "${S}/conf/kern.pre.mk" || die + fi } src_compile() {