Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 409815 | Differences between
and this patch

Collapse All | Expand All

(-)boot0-9.1_rc3.ebuild.orig (+15 lines)
Lines 34-39 Link Here
34
}
34
}
35
35
36
src_prepare() {
36
src_prepare() {
37
	#gcc 4.6 support
38
	if [ `echo $(tc-getCC) | grep gcc` ] ; then
39
		GCCVER=`$(tc-getCC) -dumpversion`
40
		GCCMAJOR=`echo ${GCCVER} | cut -f1 -d.`
41
		GCCMINOR=`echo ${GCCVER} | cut -f2 -d.`
42
		if [[ ${GCCMAJOR} -eq 4 && ${GCCMINOR} -ge 6 ]] ; then
43
			einfo "Detect gcc-4.6 or later version."
44
			epatch "${FILESDIR}"/${PN}-9.1-gcc46.patch
45
			sed -i -e '/-m elf_i386_fbsd/d' "${S}"/i386/Makefile.inc || die
46
			for dir in boot2 gptboot zfsboot gptzfsboot; do
47
				sed -i -e 's:^LDFLAGS=\(.*\):LDFLAGS=\1 -m elf_i386_fbsd:' "${S}"/i386/${dir}/Makefile || die
48
			done
49
		fi
50
	fi
51
37
	sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
52
	sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
38
		-i "${S}"/i386/boot2/Makefile \
53
		-i "${S}"/i386/boot2/Makefile \
39
		-i "${S}"/i386/gptboot/Makefile \
54
		-i "${S}"/i386/gptboot/Makefile \

Return to bug 409815