diff --git a/build_defs.bzl b/build_defs.bzl index 1b10d11..5c88f1c 100644 --- a/build_defs.bzl +++ b/build_defs.bzl @@ -68,10 +68,7 @@ def pybind_extension( linkopts = linkopts + select({ "@platforms//os:osx": ["-undefined", "dynamic_lookup"], Label("@pybind11//:msvc_compiler"): [], - "//conditions:default": [ - "-Wl,-Bsymbolic", - "-Wl,-z,undefs", - ], + "//conditions:default": ["-Wl,-Bsymbolic"], }), linkshared = 1, tags = tags,