]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/test: add -ldl to LDFLAGS on Linux, ignore issue4029 on windows (fix build)
authorShenghou Ma <minux.ma@gmail.com>
Tue, 9 Oct 2012 17:30:34 +0000 (01:30 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Tue, 9 Oct 2012 17:30:34 +0000 (01:30 +0800)
R=golang-dev
CC=golang-dev
https://golang.org/cl/6631054

misc/cgo/test/issue4029.go
misc/cgo/test/issue4029w.go [new file with mode: 0644]

index b8a0a6d985d3fabab454baf50f0666da96655ec6..a266cc64a0c95893445f45f4503c27c6afbb2d3c 100644 (file)
@@ -2,10 +2,13 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// +build !windows
+
 package cgotest
 
 /*
 #include <dlfcn.h> 
+#cgo linux LDFLAGS: -ldl
 */
 import "C"
 
diff --git a/misc/cgo/test/issue4029w.go b/misc/cgo/test/issue4029w.go
new file mode 100644 (file)
index 0000000..1cf43df
--- /dev/null
@@ -0,0 +1,12 @@
+// Copyright 2012 The Go Authors.  All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build windows
+
+package cgotest
+
+import "testing"
+
+func test4029(t *testing.T) {
+}