1

upgrade gazelle, add -lresolv

does not fix the test
This commit is contained in:
Motiejus Jakštys
2023-01-18 16:58:08 +02:00
parent 7b0de33070
commit a47c7abc96
3 changed files with 6 additions and 4 deletions

View File

@@ -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"],
)

View File

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