mirror of
https://github.com/golang/go
synced 2024-11-25 10:27:57 -07:00
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:
parent
7e90f7b4ab
commit
24ab448c69
@ -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"
|
||||
|
||||
|
12
misc/cgo/test/issue4029w.go
Normal file
12
misc/cgo/test/issue4029w.go
Normal 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) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user