Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/packages how to disable specific cgo package? #30836

Closed
shuxiao9058 opened this issue Mar 14, 2019 · 2 comments
Closed

x/tools/packages how to disable specific cgo package? #30836

shuxiao9058 opened this issue Mar 14, 2019 · 2 comments

Comments

@shuxiao9058
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.12 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/jiya/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/usr/local/gopath"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/zz/kq305wt53jx650qz4dmn7r8h0000gn/T/go-build945039651=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

What did you expect to see?

x/tools/packages painc with cgo package(linux build version .a)

What did you see instead?

How to disable specific cgo package?

@shuxiao9058
Copy link
Author

refer to:saibing/bingo#126 (comment)

@katiehockman
Copy link
Contributor

This seems like a general question, not a bug with steps to reproduce. For questions about Go, see https://golang.org/wiki/Questions.

@golang golang locked and limited conversation to collaborators Mar 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants