From 0fc81368c66ac1a99c54bda63f12f230a56d7f38 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 10 Oct 2012 01:30:34 +0800 Subject: 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 --- misc/cgo/test/issue4029.go | 3 +++ misc/cgo/test/issue4029w.go | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 misc/cgo/test/issue4029w.go 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 +#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) { +} -- cgit v1.2.1