diff options
author | Boris Nagaev <nagaev@google.com> | 2016-06-25 13:51:06 +0200 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-10-03 18:08:01 +0000 |
commit | 5dcb31b2d555be0c7d1c0c4b2001d078e7ac6078 (patch) | |
tree | 135324a3dc0c5ec873d7760c47fea1799040664d /src/make.bash | |
parent | 6c5e377d23136bd371d205e1c2aae6ddccb4597e (diff) | |
download | go-5dcb31b2d555be0c7d1c0c4b2001d078e7ac6078.tar.gz go-5dcb31b2d555be0c7d1c0c4b2001d078e7ac6078.zip |
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>
Diffstat (limited to 'src/make.bash')
-rwxr-xr-x | src/make.bash | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash index 1a1412a00c..84aaab56db 100755 --- a/src/make.bash +++ b/src/make.bash @@ -47,6 +47,8 @@ # FC: Command line to run to compile Fortran code for GOARCH. # This is used by cgo. Default is "gfortran". # +# PKG_CONFIG: Path to pkg-config tool. Default is "pkg-config". +# # GO_DISTFLAGS: extra flags to provide to "dist bootstrap". set -e |