automatically set clinkopts

This commit is contained in:
Benjamin Elder
2019-06-21 15:31:04 -07:00
parent 23fa8e7b6e
commit d596093925
2 changed files with 8 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ go_library(
"seccomp_internal.go",
],
cgo = True,
clinkopts = select({"@io_bazel_rules_go//go/platform:linux":["-lseccomp",],"//conditions:default":[],}),
importmap = "k8s.io/kubernetes/vendor/github.com/seccomp/libseccomp-golang",
importpath = "github.com/seccomp/libseccomp-golang",
visibility = ["//visibility:public"],