]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/dist, cmd/go: add environment variable override for pkg-config
authorBoris Nagaev <nagaev@google.com>
Sat, 25 Jun 2016 11:51:06 +0000 (13:51 +0200)
committerIan Lance Taylor <iant@golang.org>
Mon, 3 Oct 2016 18:08:01 +0000 (18:08 +0000)
commit5dcb31b2d555be0c7d1c0c4b2001d078e7ac6078
tree135324a3dc0c5ec873d7760c47fea1799040664d
parent6c5e377d23136bd371d205e1c2aae6ddccb4597e
cmd/dist, cmd/go: add environment variable override for pkg-config

Allow overriding default name of `pkg-config` tool via environment
variable PKG_CONFIG (same as used by autoconf pkg.m4 macros). This
facilitates easy cross-compilation of cgo code.

Original patch against Go <= 1.4 was written by
xnox_canonical <dimitri.ledkov@canonical.com> in 2014.
Source: https://codereview.appspot.com/104960043/

Fixes #16253

Change-Id: I31c33ffc3ecbff65da31421e6188d092ab4fe7e4
Reviewed-on: https://go-review.googlesource.com/29991
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/cgo/doc.go
src/cmd/dist/build.go
src/cmd/dist/buildgo.go
src/cmd/go/alldocs.go
src/cmd/go/build.go
src/cmd/go/help.go
src/make.bash