Lines 217-222
Link Here
|
217 |
} |
217 |
} |
218 |
|
218 |
|
219 |
src_prepare() { |
219 |
src_prepare() { |
|
|
220 |
if $(tc-getLD) --version | grep "GNU gold" >/dev/null; then |
221 |
eerror "You are using the Gold linker. GRUB2 will not run" |
222 |
eerror "correctly with this linker, and could result in an" |
223 |
eerror "unbootable machine. Please switch to the default" |
224 |
eerror "linker by running:" |
225 |
eerror " binutils-config --linker ld.bfd" |
226 |
die "Will not proceed with Gold linker." |
227 |
fi |
228 |
|
220 |
if [[ ${PV} != 9999 ]]; then |
229 |
if [[ ${PV} != 9999 ]]; then |
221 |
epatch "${FILESDIR}/${P}-parallel-make.patch" #424231 |
230 |
epatch "${FILESDIR}/${P}-parallel-make.patch" #424231 |
222 |
epatch "${FILESDIR}/${P}-no-gets.patch" #424703 |
231 |
epatch "${FILESDIR}/${P}-no-gets.patch" #424703 |