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

Collapse All | Expand All

(-)/usr/portage/app-emulation/qemu/qemu-0.7.0.ebuild (-3 / +10 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.7.0.ebuild,v 1.5 2005/05/07 09:23:26 lu_zero Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu/qemu-0.7.0.ebuild,v 1.5 2005/05/07 09:23:26 lu_zero Exp $
4
4
5
inherit eutils flag-o-matic linux-mod
5
inherit eutils flag-o-matic linux-mod toolchain-funcs
6
6
7
DESCRIPTION="Multi-platform & multi-targets cpu emulator and dynamic translator"
7
DESCRIPTION="Multi-platform & multi-targets cpu emulator and dynamic translator"
8
HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"
8
HOMEPAGE="http://fabrice.bellard.free.fr/qemu/"
Lines 34-39 Link Here
34
}
34
}
35
35
36
pkg_setup() {
36
pkg_setup() {
37
	if [ "$(gcc-major-version)" == "4" ]; then
38
		die "Qemu does not build with GCC 4"
39
	fi
37
#	( use kqemu || use qvm86 ) && linux-mod_pkg_setup
40
#	( use kqemu || use qvm86 ) && linux-mod_pkg_setup
38
	use kqemu && linux-mod_pkg_setup
41
	use kqemu && linux-mod_pkg_setup
39
}
42
}
Lines 60-66 Link Here
60
#	fi
63
#	fi
61
	cd ${S}
64
	cd ${S}
62
	# Alter target makefiles to accept CFLAGS set via flag-o.
65
	# Alter target makefiles to accept CFLAGS set via flag-o.
63
	sed -i 's/^CFLAGS=-Wall -O2 -g/CFLAGS+=-Wall/' Makefile Makefile.target
66
	sed -i 's/^\(C\|OP_C\|HELPER_C\)FLAGS=/\1FLAGS+=/' \
67
		Makefile Makefile.target tests/Makefile
64
	# Ensure mprotect restrictions are relaxed for emulator binaries
68
	# Ensure mprotect restrictions are relaxed for emulator binaries
65
	[[ -x /sbin/paxctl ]] && \
69
	[[ -x /sbin/paxctl ]] && \
66
		sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
70
		sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
Lines 70-78 Link Here
70
}
74
}
71
75
72
src_compile() {
76
src_compile() {
73
	#Let the application set it's cflags
77
	#Let the application set its cflags
74
	unset CFLAGS
78
	unset CFLAGS
75
79
80
	# Switch off hardened tech
81
	filter-flags -fpie -fstack-protector
82
76
	myconf=""
83
	myconf=""
77
	set_target_list
84
	set_target_list
78
#		--interp-prefix=${RUNTIME_PATH}/qemu-%M
85
#		--interp-prefix=${RUNTIME_PATH}/qemu-%M

Return to bug 74601