From: Shenghou Ma Date: Tue, 9 Oct 2012 17:30:34 +0000 (+0800) Subject: misc/cgo/test: add -ldl to LDFLAGS on Linux, ignore issue4029 on windows (fix build) X-Git-Tag: go1.1rc2~2175 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=24ab448c69f383cd23a2b88a5a240dd28269e6e2;p=gostls13.git misc/cgo/test: add -ldl to LDFLAGS on Linux, ignore issue4029 on windows (fix build) R=golang-dev CC=golang-dev https://golang.org/cl/6631054 --- diff --git a/misc/cgo/test/issue4029.go b/misc/cgo/test/issue4029.go index b8a0a6d985..a266cc64a0 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 0000000000..1cf43df37b --- /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) { +}