mirror of
https://github.com/golang/go
synced 2024-11-23 08:50:03 -07:00
misc/cgo: add various solaris build lines
Change-Id: Ifd9ac7f5300232fb83c6350a787b5803adb96b48 Reviewed-on: https://go-review.googlesource.com/8263 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
649c7b6dac
commit
2230e9d24b
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "_cgo_export.h"
|
#include "_cgo_export.h"
|
||||||
|
@ -11,6 +11,7 @@ package cgosotest
|
|||||||
#cgo dragonfly LDFLAGS: -L. -l cgosotest
|
#cgo dragonfly LDFLAGS: -L. -l cgosotest
|
||||||
#cgo freebsd LDFLAGS: -L. -l cgosotest
|
#cgo freebsd LDFLAGS: -L. -l cgosotest
|
||||||
#cgo openbsd LDFLAGS: -L. -l cgosotest
|
#cgo openbsd LDFLAGS: -L. -l cgosotest
|
||||||
|
#cgo solaris LDFLAGS: -L. -lcgosotest
|
||||||
#cgo netbsd LDFLAGS: -L. libcgosotest.so
|
#cgo netbsd LDFLAGS: -L. libcgosotest.so
|
||||||
#cgo darwin LDFLAGS: -L. libcgosotest.dylib
|
#cgo darwin LDFLAGS: -L. libcgosotest.dylib
|
||||||
#cgo windows LDFLAGS: -L. libcgosotest.dll
|
#cgo windows LDFLAGS: -L. libcgosotest.dll
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build dragonfly freebsd linux netbsd
|
// +build dragonfly freebsd linux netbsd solaris
|
||||||
|
|
||||||
package cgosotest
|
package cgosotest
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user