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

(-)johntheripper-1.7.9.ebuild (-2 / +20 lines)
Lines 36-46 Link Here
36
36
37
S="${WORKDIR}/${MY_P}"
37
S="${WORKDIR}/${MY_P}"
38
38
39
has_xop() {
40
	echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __XOP__ 1"
41
}
42
43
has_avx() {
44
	echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __AVX__ 1"
45
}
46
39
get_target() {
47
get_target() {
40
	if use alpha; then
48
	if use alpha; then
41
		echo "linux-alpha"
49
		echo "linux-alpha"
42
	elif use amd64; then
50
	elif use amd64; then
43
		echo "linux-x86-64"
51
		if has_xop; then
52
			echo "linux-x86-64-xop"
53
		elif has_avx; then
54
			echo "linux-x86-64-avx"
55
		else
56
			echo "linux-x86-64"
57
		fi
44
	elif use ppc; then
58
	elif use ppc; then
45
		#if use altivec; then
59
		#if use altivec; then
46
		#	echo "linux-ppc32-altivec"
60
		#	echo "linux-ppc32-altivec"
Lines 58-64 Link Here
58
	elif use sparc; then
72
	elif use sparc; then
59
		echo "linux-sparc"
73
		echo "linux-sparc"
60
	elif use x86; then
74
	elif use x86; then
61
		if use sse2; then
75
		if has_xop; then
76
			echo "linux-x86-xop"
77
		elif has_avx; then
78
			echo "linux-x86-avx"
79
		elif use sse2; then
62
			echo "linux-x86-sse2"
80
			echo "linux-x86-sse2"
63
		elif use mmx; then
81
		elif use mmx; then
64
			echo "linux-x86-mmx"
82
			echo "linux-x86-mmx"

Return to bug 405941