Commit c2a56bb8 by Paul Wankadia Committed by Copybara-Service

Link `status.so` with `-undefined dynamic_lookup` on macOS.

Fixes #19.

PiperOrigin-RevId: 611177855
parent 7b3209d4
...@@ -151,6 +151,13 @@ pybind_library( ...@@ -151,6 +151,13 @@ pybind_library(
cc_binary( cc_binary(
name = "status.so", name = "status.so",
srcs = ["status_py_extension_stub.cc"], srcs = ["status_py_extension_stub.cc"],
linkopts = select({
"@platforms//os:osx": [
"-undefined",
"dynamic_lookup",
],
"//conditions:default": ["-Wl,-Bsymbolic"],
}),
linkshared = 1, linkshared = 1,
deps = [ deps = [
":status_pyinit_google3", ":status_pyinit_google3",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment