eclass/coreos-go.eclass: Fix GOPATH usage

We currenly use ${GOPATH}/bin as the path for the compiler generated executable,
but this usage does not allow ebuilds to add additional local paths to GOPATH.  To
allow for this usage, change the invocation of the compiler to use ${GOBIN}.

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2015-05-20 10:45:41 -07:00
parent eff7ed1aa2
commit a34c97f748

View File

@ -32,7 +32,7 @@ go_build() {
go build -x -p "$(makeopts_jobs)" \ go build -x -p "$(makeopts_jobs)" \
-ldflags "${GO_LDFLAGS} -extldflags '${LDFLAGS}'" \ -ldflags "${GO_LDFLAGS} -extldflags '${LDFLAGS}'" \
-o "${GOPATH}/bin/${binary_name}" "${package_name}" \ -o "${GOBIN}/${binary_name}" "${package_name}" \
|| die "${ECLASS}: go build failed" || die "${ECLASS}: go build failed"
} }