diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go index 6be3872012..426427cd76 100644 --- a/src/cmd/go/internal/envcmd/env.go +++ b/src/cmd/go/internal/envcmd/env.go @@ -250,7 +250,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { ev.Changed = ev.Value != "" case "PKG_CONFIG": ev.Changed = ev.Value != cfg.DefaultPkgConfig - case "CGO_CXXFLAGS", "CGO_CFLAGS", "CGO_FFLAGS", "GGO_LDFLAGS": + case "CGO_CXXFLAGS", "CGO_CFLAGS", "CGO_FFLAGS", "CGO_LDFLAGS": ev.Changed = ev.Value != work.DefaultCFlags } }