github.com/bgentry/go@v0.0.0-20150121062915-6cf5a733d54d/src/runtime/cgo/cgo.go (about) 1 // Copyright 2010 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 /* 6 Package cgo contains runtime support for code generated 7 by the cgo tool. See the documentation for the cgo command 8 for details on using cgo. 9 */ 10 package cgo 11 12 /* 13 14 #cgo darwin LDFLAGS: -lpthread 15 #cgo dragonfly LDFLAGS: -lpthread 16 #cgo freebsd LDFLAGS: -lpthread 17 #cgo android LDFLAGS: -llog 18 #cgo !android,linux LDFLAGS: -lpthread 19 #cgo netbsd LDFLAGS: -lpthread 20 #cgo openbsd LDFLAGS: -lpthread 21 #cgo windows LDFLAGS: -lm -mthreads 22 23 #cgo CFLAGS: -Wall -Werror 24 25 */ 26 import "C"