You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tklauser
changed the title
after upgrade from 1.9.2 to 1.10, cgo compile fail
cmd/cgo: after upgrade from 1.9.2 to 1.10, cgo compile fails with "invalid flag in #cgo LDFLAGS: -Wl,-z,relro"
Feb 26, 2018
Uh oh!
There was an error while loading. Please reload this page.
What version of Go are you using (
go version
)?go version go1.10 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
I use cgo and code like this:
go build report error message:
invalid flag in #cgo LDFLAGS: -Wl,-z,relro
What did you expect to see?
go build success
What did you see instead?
go build fail:
invalid flag in #cgo LDFLAGS: -Wl,-z,relro
The text was updated successfully, but these errors were encountered: