github.com/aloncn/graphics-go@v0.0.1/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,!arm,!arm64 LDFLAGS: -lpthread
    15  #cgo darwin,arm LDFLAGS: -framework CoreFoundation
    16  #cgo darwin,arm64 LDFLAGS: -framework CoreFoundation
    17  #cgo dragonfly LDFLAGS: -lpthread
    18  #cgo freebsd LDFLAGS: -lpthread
    19  #cgo android LDFLAGS: -llog
    20  #cgo !android,linux LDFLAGS: -lpthread
    21  #cgo netbsd LDFLAGS: -lpthread
    22  #cgo openbsd LDFLAGS: -lpthread
    23  // we must explicitly link msvcrt, because runtime needs ntdll, and ntdll
    24  // exports some incompatible libc functions. See golang.org/issue/12030.
    25  #cgo windows LDFLAGS: -lmsvcrt -lm -mthreads
    26  
    27  #cgo CFLAGS: -Wall -Werror
    28  
    29  #cgo solaris CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    30  
    31  */
    32  import "C"