]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo: add various solaris build lines
authorAram Hăvărneanu <aram@mgk.ro>
Mon, 30 Mar 2015 21:11:36 +0000 (23:11 +0200)
committerAram Hăvărneanu <aram@mgk.ro>
Wed, 6 May 2015 11:38:08 +0000 (11:38 +0000)
Change-Id: Ifd9ac7f5300232fb83c6350a787b5803adb96b48
Reviewed-on: https://go-review.googlesource.com/8263
Reviewed-by: Minux Ma <minux@golang.org>
misc/cgo/test/cthread_unix.c
misc/cgo/testso/cgoso.go
misc/cgo/testso/cgoso_unix.go

index 3f39c15e0e8fd3d9469f54818813f65f9dce2ded..d29f2fc5f22c1b5daa00898a9b3bcc9e3b27aadb 100644 (file)
@@ -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 <pthread.h>
 #include "_cgo_export.h"
index ba6218348cab5271569801700e521b6881284c5d..29814fa43aeafe3f0250ef216b2301c29359735a 100644 (file)
@@ -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
index 7d5444cd12b52a59dc2648042a30beb4a12c9dac..49cdeaa2f59d899fe11f1a7efcec1cbb9d9839fd 100644 (file)
@@ -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