mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
automatically set clinkopts
This commit is contained in:
parent
23fa8e7b6e
commit
d596093925
@ -79,3 +79,10 @@ buildozer -quiet 'add tags manual' '//vendor/...:%go_binary' '//vendor/...:%go_t
|
||||
if [[ $ret != 0 && $ret != 3 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# we need to set this because gazelle doesn't support pkg-config, which would set this link option
|
||||
# see comment above re: buildozer exit codes
|
||||
buildozer -quiet 'set clinkopts select({"@io_bazel_rules_go//go/platform:linux":["-lseccomp",],"//conditions:default":[],})' //vendor/github.com/seccomp/libseccomp-golang:go_default_library && ret=$? || ret=$?
|
||||
if [[ $ret != 0 && $ret != 3 ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
1
vendor/github.com/seccomp/libseccomp-golang/BUILD
generated
vendored
1
vendor/github.com/seccomp/libseccomp-golang/BUILD
generated
vendored
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user