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