Merge pull request #58 from kersson/fix-undefined-dynamic-lookup

Explicitly specify `-undefined dynamic_lookup`
diff --git a/build_defs.bzl b/build_defs.bzl
index cde1e93..a87de55 100644
--- a/build_defs.bzl
+++ b/build_defs.bzl
@@ -50,7 +50,7 @@
         features = features + PYBIND_FEATURES,
         linkopts = linkopts + select({
             "@pybind11//:msvc_compiler": [],
-            "@pybind11//:osx": [],
+            "@pybind11//:osx": ["-undefined", "dynamic_lookup"],
             "//conditions:default": ["-Wl,-Bsymbolic"],
         }),
         linkshared = 1,