• Jaana Burcu Dogan's avatar
    cmd/go/internal/envcmd: report PKG_CONFIG after the CGO group · f37428d8
    Jaana Burcu Dogan authored
    Before the change, `go env` reports PKG_CONFIG in between the
    CGO env group:
    
        GOARCH="amd64"
        GOBIN=""
        GOEXE=""
        GOHOSTARCH="amd64"
        GOHOSTOS="darwin"
        GOOS="darwin"
        GOPATH="/Users/jbd"
        GORACE=""
        GOROOT="/Users/jbd/go"
        GOTOOLDIR="/Users/jbd/go/pkg/tool/darwin_amd64"
        GCCGO="gccgo"
        CC="clang"
        GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lq/qcn67khn4_1b41_g48x3zchh005d21/T/go-build184491598=/tmp/go-build -gno-record-gcc-switches -fno-common"
        CXX="clang++"
        CGO_ENABLED="1"
        PKG_CONFIG="pkg-config"
        CGO_CFLAGS="-g -O2"
        CGO_CPPFLAGS=""
        CGO_CXXFLAGS="-g -O2"
        CGO_FFLAGS="-g -O2"
        CGO_LDFLAGS="-g -O2"
    
    The change makes PKG_CONFIG to be reported as the final item,
    and not breaking the CGO_* group apart.
    
    Change-Id: I1e7ed6bdec83009ff118f85c9f0f7b78a67fdd76
    Reviewed-on: https://go-review.googlesource.com/37228Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    f37428d8
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...