diff --git a/bazel/foreign_cc/BUILD b/bazel/foreign_cc/BUILD index 6c59c4266db1..bc45b7fa6f50 100644 --- a/bazel/foreign_cc/BUILD +++ b/bazel/foreign_cc/BUILD @@ -269,6 +269,10 @@ envoy_cmake( "//bazel:windows_x86_64": ["libcurl.lib"], "//conditions:default": ["libcurl.a"], }), + env = { + "CXXFLAGS": "-fPIC", + "CFLAGS": "-fPIC", + }, deps = [ ":ares", ":nghttp2",