--- a/grub-2.00-r4.ebuild 2013-07-24 10:11:24.424040466 -0400 +++ b/grub-2.00-r4.ebuild 2013-07-24 10:11:54.036039071 -0400 @@ -129,17 +129,6 @@ usr/lib.*/grub/.*/kernel.img " -pkg_pretend() { - if [[ ${MERGE_TYPE} != binary ]]; then - # Bug 439082 - if $(tc-getLD) --version | grep -q "GNU gold"; then - eerror "GRUB does not function correctly when built with the gold linker." - eerror "Please select the bfd linker with binutils-config." - die "GNU gold detected" - fi - fi -} - src_prepare() { [[ ${PATCHES} ]] && epatch "${PATCHES[@]}" sed -i -e /autoreconf/d autogen.sh || die @@ -194,6 +183,8 @@ if use multislot; then myeconfargs+=( + append-cflags "-fuse-ld=bfd" + --program-transform-name="s,grub,grub2," --with-grubdir=grub2 )