diff --git a/third_party/protobuf/protobuf.patch b/third_party/protobuf/protobuf.patch index df0648563dc..18fc6cdf35c 100644 --- a/third_party/protobuf/protobuf.patch +++ b/third_party/protobuf/protobuf.patch @@ -11,7 +11,15 @@ index 2fb26050..c2744d5b 100644 ################################################################################ # Protobuf Runtime Library -@@ -218,7 +218,7 @@ cc_library( +@@ -209,6 +209,7 @@ cc_library( + copts = COPTS, + includes = ["src/"], + linkopts = LINK_OPTS, ++ alwayslink = 1, + visibility = ["//visibility:public"], + deps = [":protobuf_lite"] + PROTOBUF_DEPS, + ) +@@ -219,7 +220,7 @@ cc_library( # TODO(keveman): Remove this target once the support gets added to Bazel. cc_library( name = "protobuf_headers", @@ -20,3 +28,4 @@ index 2fb26050..c2744d5b 100644 includes = ["src/"], visibility = ["//visibility:public"], ) + \ No newline at end of file