diff --git a/library/python/BUILD b/library/python/BUILD index 1459e2c1f5..c3dc79c74c 100644 --- a/library/python/BUILD +++ b/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",