Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 320797
Collapse All | Expand All

(-)/usr/portage/games-util/grfcodec/grfcodec-0_pre2306.ebuild (-1 / +8 lines)
Lines 3-9 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/games-util/grfcodec/grfcodec-0_pre2306.ebuild,v 1.6 2010/05/28 18:14:22 josejx Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-util/grfcodec/grfcodec-0_pre2306.ebuild,v 1.6 2010/05/28 18:14:22 josejx Exp $
4
4
5
EAPI=2
5
EAPI=2
6
inherit eutils toolchain-funcs
6
inherit eutils toolchain-funcs flag-o-matic
7
7
8
MY_PV=${PV/0_pre/r}
8
MY_PV=${PV/0_pre/r}
9
DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files"
9
DESCRIPTION="A suite of programs to modify openttd/Transport Tycoon Deluxe's GRF files"
Lines 22-27 Link Here
22
RDEPEND=""
22
RDEPEND=""
23
23
24
src_prepare() {
24
src_prepare() {
25
	# Optimization in >=gcc-4.5.0 breaks grfcodec, causes bug #320797
26
	if  [ $(gcc-fullversion) == 4.5.0 ] ; then
27
		ewarn "gcc-4.5.0 found, filtering optimizations and using -O0."
28
		filter-flags "-O?"
29
		append-flags -O0
30
	fi
31
25
	cat > Makefile.local <<-__EOF__
32
	cat > Makefile.local <<-__EOF__
26
		CC = $(tc-getCC)
33
		CC = $(tc-getCC)
27
		CXX = $(tc-getCXX)
34
		CXX = $(tc-getCXX)

Return to bug 320797