andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 651 forks source link

Can't compile on mac #273

Closed Tricky1975 closed 6 years ago

Tricky1975 commented 6 years ago
go build github.com/andlabs/ui

results into:

go build github.com/andlabs/ui: invalid flag in #cgo LDFLAGS: -mmacosx-version-min=10.8

MacOS version: 10.12.6 (Sierra) Go version: go version go1.10 darwin/amd64

It used to work in older Go versions

andlabs commented 6 years ago

The Go team is working on fixing this.

Tricky1975 commented 6 years ago

Ah so this is an issue in Go itself?

andlabs commented 6 years ago

Yes, it's the result of a security fix. Try setting CGO_LDFLAGS_ALLOWED.

Tricky1975 commented 6 years ago

Thank you, I will investigate this ;)