Skip to content

Commit

Permalink
Link status.so with -undefined dynamic_lookup on macOS.
Browse files Browse the repository at this point in the history
Fixes #19.

PiperOrigin-RevId: 611177855
  • Loading branch information
junyer authored and copybara-github committed Feb 28, 2024
1 parent 7b3209d commit c2a56bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pybind11_abseil/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ pybind_library(
cc_binary(
name = "status.so",
srcs = ["status_py_extension_stub.cc"],
linkopts = select({
"@platforms//os:osx": [
"-undefined",
"dynamic_lookup",
],
"//conditions:default": ["-Wl,-Bsymbolic"],
}),
linkshared = 1,
deps = [
":status_pyinit_google3",
Expand Down

0 comments on commit c2a56bb

Please sign in to comment.