diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-10-10 01:30:34 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-10-10 01:30:34 +0800 |
commit | 0fc81368c66ac1a99c54bda63f12f230a56d7f38 (patch) | |
tree | c33687d4dbda7152013a28f7b78471ad95ea75d8 | |
parent | 36d2f7c9131aa43e2ebdeada331d19d6d8037437 (diff) | |
download | go-0fc81368c66ac1a99c54bda63f12f230a56d7f38.tar.gz |
misc/cgo/test: add -ldl to LDFLAGS on Linux, ignore issue4029 on windows (fix build)
R=golang-dev
CC=golang-dev
http://codereview.appspot.com/6631054
-rw-r--r-- | misc/cgo/test/issue4029.go | 3 | ||||
-rw-r--r-- | misc/cgo/test/issue4029w.go | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/misc/cgo/test/issue4029.go b/misc/cgo/test/issue4029.go index b8a0a6d98..a266cc64a 100644 --- a/misc/cgo/test/issue4029.go +++ b/misc/cgo/test/issue4029.go @@ -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 index 000000000..1cf43df37 --- /dev/null +++ b/misc/cgo/test/issue4029w.go @@ -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) { +} |