I am building a Golang 1.7 (go version go1.7 darwin/amd64
) application from OSX 10.12 Beta (16A312a) by running this command
env GOOS=darwin GOARCH=amd64 /usr/local/go/bin/go build -ldflags=-s -o dist/program ${GOPATH}src/github.com/owner/repo/program.go
The program seems to run successfully on OSX 10.7 and above but it breaks in 10.6.8 with the following error:
dyld: Symbol not found: _SecCertificateCopyNormalizedSubjectContent
Referenced from: /tmp/program
Expected in: flat namespace
I used to compile this same program from OSX 10.11 and it would work on 10.6 and above.
Any help? Thanks