--- grub-2.00-r1.ebuild.orig 2012-10-20 19:17:57.000000000 +0200 +++ grub-2.00-r1.ebuild 2012-10-20 19:35:30.000000000 +0200 @@ -217,6 +217,15 @@ } src_prepare() { + if $(tc-getLD) --version | grep "GNU gold" >/dev/null; then + eerror "You are using the Gold linker. GRUB2 will not run" + eerror "correctly with this linker, and could result in an" + eerror "unbootable machine. Please switch to the default" + eerror "linker by running:" + eerror " binutils-config --linker ld.bfd" + die "Will not proceed with Gold linker." + fi + if [[ ${PV} != 9999 ]]; then epatch "${FILESDIR}/${P}-parallel-make.patch" #424231 epatch "${FILESDIR}/${P}-no-gets.patch" #424703