From 2230e9d24bc4a6241e2eb2603ebc151e1167a5bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aram=20H=C4=83v=C4=83rneanu?= Date: Mon, 30 Mar 2015 23:11:36 +0200 Subject: [PATCH] misc/cgo: add various solaris build lines Change-Id: Ifd9ac7f5300232fb83c6350a787b5803adb96b48 Reviewed-on: https://go-review.googlesource.com/8263 Reviewed-by: Minux Ma --- misc/cgo/test/cthread_unix.c | 2 +- misc/cgo/testso/cgoso.go | 1 + misc/cgo/testso/cgoso_unix.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/cgo/test/cthread_unix.c b/misc/cgo/test/cthread_unix.c index 3f39c15e0e..d29f2fc5f2 100644 --- a/misc/cgo/test/cthread_unix.c +++ b/misc/cgo/test/cthread_unix.c @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // 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 #include "_cgo_export.h" diff --git a/misc/cgo/testso/cgoso.go b/misc/cgo/testso/cgoso.go index ba6218348c..29814fa43a 100644 --- a/misc/cgo/testso/cgoso.go +++ b/misc/cgo/testso/cgoso.go @@ -11,6 +11,7 @@ package cgosotest #cgo dragonfly LDFLAGS: -L. -l cgosotest #cgo freebsd LDFLAGS: -L. -l cgosotest #cgo openbsd LDFLAGS: -L. -l cgosotest +#cgo solaris LDFLAGS: -L. -lcgosotest #cgo netbsd LDFLAGS: -L. libcgosotest.so #cgo darwin LDFLAGS: -L. libcgosotest.dylib #cgo windows LDFLAGS: -L. libcgosotest.dll diff --git a/misc/cgo/testso/cgoso_unix.go b/misc/cgo/testso/cgoso_unix.go index 7d5444cd12..49cdeaa2f5 100644 --- a/misc/cgo/testso/cgoso_unix.go +++ b/misc/cgo/testso/cgoso_unix.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build dragonfly freebsd linux netbsd +// +build dragonfly freebsd linux netbsd solaris package cgosotest -- 2.48.1