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
This commit is contained in:
Shenghou Ma 2012-10-10 01:30:34 +08:00
parent 7e90f7b4ab
commit 24ab448c69
2 changed files with 15 additions and 0 deletions

View 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"

View file

@ -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) {
}