diff --git a/bindings/python/build_defs.bzl b/bindings/python/build_defs.bzl index 45907aaa..ffe0d9e2 100644 --- a/bindings/python/build_defs.bzl +++ b/bindings/python/build_defs.bzl @@ -8,12 +8,13 @@ def py_extension(name, srcs, hdrs = [], copts = [], features = [], deps = []): shared_lib_name = name + shared_lib_suffix native.cc_binary( name = shared_lib_name, - linkshared = 1, - linkstatic = 1, + linkshared = True, + linkstatic = True, srcs = srcs + hdrs, copts = copts, features = features, deps = deps, + local_defines = ["BENCHMARK_STATIC_DEFINE"], ) return native.py_library(