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

(-)a/dev-lang/fpc/fpc-2.6.4.ebuild (-12 / +12 lines)
Lines 30-46 RESTRICT="strip" #269221 Link Here
30
30
31
S=${WORKDIR}/fpcbuild-${PV}/fpcsrc
31
S=${WORKDIR}/fpcbuild-${PV}/fpcsrc
32
32
33
pkg_pretend() {
34
	if [[ ${MERGE_TYPE} != binary ]]; then
35
		# Bug 475210
36
		if $(tc-getLD) --version | grep -q "GNU gold"; then
37
			eerror "fpc does not function correctly when built with the gold linker."
38
			eerror "Please select the bfd linker with binutils-config."
39
			die "GNU gold detected"
40
		fi
41
	fi
42
}
43
44
src_unpack() {
33
src_unpack() {
45
	case ${ARCH} in
34
	case ${ARCH} in
46
		amd64)	FPC_ARCH="x86_64"    PV_BIN=${PV} ;;
35
		amd64)	FPC_ARCH="x86_64"    PV_BIN=${PV} ;;
Lines 84-89 set_pp() { Link Here
84
}
73
}
85
74
86
src_compile() {
75
src_compile() {
76
	if tc-ld-is-gold; then
77
		local ld=$(tc-getLD "$@")
78
		local bfd_ld="${ld%% *}.bfd"
79
		local path_ld=$(which "${bfd_ld}" 2>/dev/null)
80
		[[ -e ${path_ld} ]] || die 'No bfd?'
81
		export LD=${bfd_ld}
82
		local d="${T}/bfd-linker"
83
		mkdir -p "${d}"
84
		ln -sf "${path_ld}" "${d}"/ld
85
		export PATH="${d}:${PATH}"
86
	fi
87
87
	local pp
88
	local pp
88
89
89
	# Using the bootstrap compiler.
90
	# Using the bootstrap compiler.
90
- 

Return to bug 475210