Skip to content

Commit

Permalink
dev-lang/go: fix gccgo support to use gcc-config --get-bin-path (bug …
Browse files Browse the repository at this point in the history
…579958)

Package-Manager: portage-2.2.28
  • Loading branch information
zmedico committed Apr 19, 2016
1 parent a47ce98 commit bf6b265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-lang/go/go-1.6.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bf6b265

Please sign in to comment.