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 (-2 / +11 lines)
Lines 4-10 Link Here
4
4
5
EAPI=2
5
EAPI=2
6
6
7
inherit bsdmk freebsd flag-o-matic
7
inherit bsdmk freebsd flag-o-matic toolchain-funcs
8
8
9
DESCRIPTION="FreeBSD's bootloader"
9
DESCRIPTION="FreeBSD's bootloader"
10
SLOT="0"
10
SLOT="0"
Lines 34-44 Link Here
34
}
34
}
35
35
36
src_prepare() {
36
src_prepare() {
37
	sed -e '/-fomit-frame-pointer/d' -e '/-mno-align-long-strings/d' \
37
	sed -e '/-mno-align-long-strings/d' \
38
		-i "${S}"/i386/boot2/Makefile \
38
		-i "${S}"/i386/boot2/Makefile \
39
		-i "${S}"/i386/gptboot/Makefile \
39
		-i "${S}"/i386/gptboot/Makefile \
40
		-i "${S}"/i386/gptzfsboot/Makefile \
40
		-i "${S}"/i386/gptzfsboot/Makefile \
41
		-i "${S}"/i386/zfsboot/Makefile || die
41
		-i "${S}"/i386/zfsboot/Makefile || die
42
43
	# gcc-4.6 or later version support, bug #409815
44
	if ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -ge 6 ]] ) ; then
45
		sed -i -e '/-m elf_i386_fbsd/d' "${S}"/i386/Makefile.inc || die
46
		for dir in boot2 gptboot gptzfsboot zfsboot; do
47
			echo "LDFLAGS+= -m elf_i386_fbsd" >> "${S}"/i386/${dir}/Makefile || die
48
		done
49
		echo "CFLAGS+= -fno-asynchronous-unwind-tables" >> "${S}"/i386/boot2/Makefile || die
50
	fi
42
}
51
}
43
52
44
src_compile() {
53
src_compile() {

Return to bug 409815