diff options
author | ruanjiandong <ruanjiandong@gmail.com> | 2018-06-14 17:05:01 -0700 |
---|---|---|
committer | Allen Lavoie <allenlavoie@gmail.com> | 2018-06-15 01:05:01 +0100 |
commit | e6570147c4699518af50d2b08190290003d33aa8 (patch) | |
tree | b46ca02872e69d6624c19a82911ac4f92eb9a562 /tensorflow/BUILD | |
parent | eefd88284ba3744a5d7f6a3a7c179bed8421b7e2 (diff) |
opencv interop fix: exclude libjpeg symbols from libtensorflow_framew… (#19966)
* opencv interop fix: exclude libjpeg symbols from libtensorflow_framework.so to avoid symbol conflict
* Fix buildifier issue (sorting of fields)
Diffstat (limited to 'tensorflow/BUILD')
-rw-r--r-- | tensorflow/BUILD | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/BUILD b/tensorflow/BUILD index 6d134dbb80..d77f04139e 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -451,6 +451,15 @@ filegroup( tf_cc_shared_object( name = "libtensorflow_framework.so", framework_so = [], + linkopts = select({ + "//tensorflow:darwin": [], + "//tensorflow:windows": [], + "//tensorflow:windows_msvc": [], + "//conditions:default": [ + "-Wl,--version-script", # This line must be directly followed by the version_script.lds file + "$(location //tensorflow:tf_framework_version_script.lds)", + ], + }), linkstatic = 1, visibility = ["//visibility:public"], deps = [ @@ -460,6 +469,7 @@ tf_cc_shared_object( "//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry_impl", "//tensorflow/core:lib_internal_impl", "//tensorflow/stream_executor:stream_executor_impl", + "//tensorflow:tf_framework_version_script.lds", ] + tf_additional_binary_deps(), ) |