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

(-)a/usr-ldscript.eclass (-1 / +6 lines)
Lines 64-73 Link Here
64
		dodir /${libdir}
64
		dodir /${libdir}
65
	fi
65
	fi
66
66
67
	case ${CHOST} in
68
	*-darwin*) local versionflag=-v ;;
69
	*) local versionflag=--version ;;
70
	esac
71
67
	# OUTPUT_FORMAT gives hints to the linker as to what binary format
72
	# OUTPUT_FORMAT gives hints to the linker as to what binary format
68
	# is referenced ... makes multilib saner
73
	# is referenced ... makes multilib saner
69
	local flags=( ${CFLAGS} ${LDFLAGS} -Wl,--verbose )
74
	local flags=( ${CFLAGS} ${LDFLAGS} -Wl,--verbose )
70
	if $(tc-getLD) --version | grep -q 'GNU gold' ; then
75
	if $(tc-getLD) ${versionflag} | grep -q 'GNU gold' ; then
71
		# If they're using gold, manually invoke the old bfd. #487696
76
		# If they're using gold, manually invoke the old bfd. #487696
72
		local d="${T}/bfd-linker"
77
		local d="${T}/bfd-linker"
73
		mkdir -p "${d}"
78
		mkdir -p "${d}"

Return to bug 751835