From 24ab448c69f383cd23a2b88a5a240dd28269e6e2 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 10 Oct 2012 01:30:34 +0800 Subject: [PATCH] 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 --- 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 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) { +} -- 2.48.1