--- /usr/portage/sys-boot/grub/grub-2.00-r3.ebuild 2013-04-29 03:01:30.000000000 +0300 +++ /usr/local/portage/sys-boot/grub/grub-2.00-r3.ebuild 2013-07-09 19:30:12.110323122 +0300 @@ -220,17 +220,6 @@ emake -C docs DESTDIR="${D}" install-html } -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() { if [[ ${PV} != 9999 ]]; then epatch "${FILESDIR}/${P}-parallel-make.patch" #424231 @@ -285,6 +274,8 @@ use static && append-ldflags -static use elibc_FreeBSD && append-cppflags "-isystem /usr/include" + append-cflags "-fuse-ld=bfd" + # Sandbox bug 404013. use libzfs && addpredict /etc/dfs:/dev/zfs