diff --git a/.bazelrc b/.bazelrc index dc0b11f85..9ede6703a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -7,7 +7,8 @@ import %workspace%/envoy.bazelrc # Link with libcap -build --linkopt="-l:libcap.a" +# build:linux --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libcap.a +# build --linkopt="-l:libcap.a" # Use platforms based toolchain resolution build --incompatible_enable_cc_toolchain_resolution diff --git a/BUILD b/BUILD index c494689b9..cc682d4aa 100644 --- a/BUILD +++ b/BUILD @@ -26,6 +26,7 @@ envoy_cc_binary( "//cilium:tls_wrapper_lib", "@envoy//source/exe:envoy_main_entry_lib", ], + linkopts = ["-l:libcap.a"], ) sh_test(