diff --git a/mobile/library/python/BUILD b/mobile/library/python/BUILD index 1459e2c1f5f2..c3dc79c74c86 100644 --- a/mobile/library/python/BUILD +++ b/mobile/library/python/BUILD @@ -31,6 +31,10 @@ pybind_extension( srcs = [ "module_definition.cc", ], + linkopts = select({ + "//bazel:darwin": ["-Wl,-exported_symbol,_PyInit_envoy_engine"], + "//conditions:default": [], + }), visibility = ["//visibility:public"], deps = [ ":envoy_engine_lib",