1
0
mirror of https://github.com/golang/go synced 2024-11-22 05:24:39 -07:00

crypto/tls: quiet build

On a Mac, all the useful functions are deprecated.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5493054
This commit is contained in:
Russ Cox 2011-12-15 18:37:31 -05:00
parent 2da651f115
commit 6699aa4aee

View File

@ -8,7 +8,7 @@ package tls
// Note: We disable -Werror here because the code in this file uses a deprecated API to stay // Note: We disable -Werror here because the code in this file uses a deprecated API to stay
// compatible with both Mac OS X 10.6 and 10.7. Using a deprecated function on Darwin generates // compatible with both Mac OS X 10.6 and 10.7. Using a deprecated function on Darwin generates
// a warning. // a warning.
#cgo CFLAGS: -Wno-error #cgo CFLAGS: -Wno-error -Wno-deprecated-declarations
#cgo LDFLAGS: -framework CoreFoundation -framework Security #cgo LDFLAGS: -framework CoreFoundation -framework Security
#include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h> #include <Security/Security.h>