diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-04-28 09:28:58 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-04-28 09:28:58 -0700 |
commit | e9d3e68a0ce0bb76b0fc1f2e58877dbaac63daaa (patch) | |
tree | 7ca2dc620c32c1171c0563699da00c0527a1cb85 /dev-lang/go/go-9999.ebuild | |
parent | app-admin/clsync: fix CDEPEND -> RDEPEND typo (diff) | |
download | gentoo-e9d3e68a0ce0bb76b0fc1f2e58877dbaac63daaa.tar.gz gentoo-e9d3e68a0ce0bb76b0fc1f2e58877dbaac63daaa.tar.bz2 gentoo-e9d3e68a0ce0bb76b0fc1f2e58877dbaac63daaa.zip |
dev-lang/go: fix gccgo support to use gcc-config --get-bin-path (bug 579958)
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-lang/go/go-9999.ebuild')
-rw-r--r-- | dev-lang/go/go-9999.ebuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild index 8a116ae0ed74..85536d0dc700 100644 --- a/dev-lang/go/go-9999.ebuild +++ b/dev-lang/go/go-9999.ebuild @@ -152,7 +152,7 @@ src_compile() export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap if use gccgo; then mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die - local go_binary=$(type -P go-5 2>/dev/null) + local go_binary=$(gcc-config --get-bin-path)/go-5 [[ -x ${go_binary} ]] || go_binary=$( find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | sort -V | tail -n1) [[ -x ${go_binary} ]] || die "go-5: command not found" |