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

(-)ipxe-1.0.0_p20130624.ebuild (+31 lines)
Lines 4-9 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit flag-o-matic toolchain-funcs
8
7
GIT_REV="936134ed460618e18cc05d677a442d43d5e739a1"
9
GIT_REV="936134ed460618e18cc05d677a442d43d5e739a1"
8
GIT_SHORT="936134e"
10
GIT_SHORT="936134e"
9
11
Lines 39-44 Link Here
39
#define CONSOLE_VMWARE
41
#define CONSOLE_VMWARE
40
EOF
42
EOF
41
	fi
43
	fi
44
45
	#package rejects the Gnu gold linker, bug https://bugs.gentoo.org/475202
46
	LD=$(tc-getLD)
47
	if ${LD} -v | grep -i "GNU gold" >/dev/null ; then
48
		if which "${LD}.bfd" >/dev/null ; then
49
			elog "overiding GNU gold linker with ld.bfd (bug 475202)"
50
			LD="${LD}.bfd"
51
		else
52
			elog "GNU gold linker is rejected by the package (bug 475202)"
53
		fi
54
	fi
55
56
	# verbose build, respect gcc, ld, 
57
	# maybe just set CROSS_COMPILE to $(tc-getCC) without -gcc
58
	# HOST_CC is used to compile util/zbin to be later run in the
59
	# build process
60
	sed -e '1iV := 1' \
61
		-e "/\(C\|LD\)FLAGS/d" \
62
		-e "/^AR\t*:=/s|:=.*|:= $(tc-getAR)|" \
63
		-e "/^CC\t*:=/s|:=.*|:= $(tc-getCC)|" \
64
		-e "/^LD\t*:=/s|:=.*|:= ${LD}|" \
65
		-e "/^OBJCOPY\t*:=/s|:=.*|:= $(tc-getOBJCOPY)|" \
66
		-e "/^OBJDUMP\t*:=/s|:=.*|:= $(tc-getPROG OBJDUMP objdump)|" \
67
		-e "/^RANLIB\t*:=/s|:=.*|:= $(tc-getRANLIB)|" \
68
		-e "/^HOST_CC\t*:=/s|:=.*|:= $(tc-getCC) ${CFLAGS} ${LDFLAGS}|" \
69
		-i Makefile
70
	export CFLAGS=
71
	export LDFLAGS=
72
42
}
73
}
43
74
44
src_compile() {
75
src_compile() {

Return to bug 475202