From cbda1d1a2ace644fb33af362b2c216dfe04af9e8 Mon Sep 17 00:00:00 2001 From: "carmel.levin" Date: Sun, 15 May 2022 13:17:24 +0300 Subject: [PATCH] add -fPIC flag --- bazel/foreign_cc/BUILD | 4 ++++ 1 file changed, 4 insertions(+) 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",