提交 de496865 编写于 作者: 叶剑武

Merge branch 'support-latest-bazel' into 'master'

Fix version script bug to support latest bazel.

See merge request !852
...@@ -49,18 +49,24 @@ cc_binary( ...@@ -49,18 +49,24 @@ cc_binary(
linkopts = [ linkopts = [
"-Wl,-soname,libmace.so", "-Wl,-soname,libmace.so",
"-Wl,--version-script", "-Wl,--version-script",
"mace_version_script.lds", "$(location //mace/libmace:mace_version_script.lds)",
] + if_openmp_enabled([ ] + if_openmp_enabled([
"-fopenmp", "-fopenmp",
]), ]),
linkshared = 1, linkshared = 1,
linkstatic = 1, linkstatic = 1,
deps = [ deps = [
":mace_version_script.lds", "//mace/libmace:mace_version_script.lds",
"//mace/libmace", "//mace/libmace",
], ],
) )
exports_files(
[
"mace_version_script.lds",
],
)
cc_library( cc_library(
name = "libmace_dynamic", name = "libmace_dynamic",
srcs = ["libmace.so"], srcs = ["libmace.so"],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册