upgrade gazelle, add -lresolv
does not fix the test
This commit is contained in:
@@ -6,6 +6,7 @@ go_library(
|
||||
name = "cgo_lib",
|
||||
srcs = ["cgo.go"],
|
||||
cgo = True,
|
||||
clinkopts = ["-lresolv"],
|
||||
importpath = "git.sr.ht/~motiejus/bazel-zig-cc/test/cgo",
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
@@ -7,6 +7,7 @@ package main
|
||||
// #include <resolv.h>
|
||||
// char* hello() { return "hello, world"; }
|
||||
// void phello() { printf("%s, your lucky numbers are %p and %p\n", hello(), fcntl, res_search); }
|
||||
// #cgo LDFLAGS: -lresolv
|
||||
import "C"
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user