From d36301f6e0157891bad3796f99353f3e9e135fb7 Mon Sep 17 00:00:00 2001 From: Jarno Rajahalme Date: Mon, 14 Aug 2023 21:20:04 +0300 Subject: [PATCH] bazel: fix rc Signed-off-by: Jarno Rajahalme --- .bazelrc | 3 ++- BUILD | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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(