aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorflow.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/tensorflow.bzl')
-rw-r--r--tensorflow/tensorflow.bzl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl
index 340d3f393c..054d68d42c 100644
--- a/tensorflow/tensorflow.bzl
+++ b/tensorflow/tensorflow.bzl
@@ -404,7 +404,7 @@ def tf_gen_op_wrapper_cc(name,
tf_cc_binary(
name=tool,
copts=tf_copts(),
- linkopts=if_not_windows(["-lm"]),
+ linkopts=if_not_windows(["-lm","-Wl,-ldl"]),
linkstatic=1, # Faster to link this one-time-use binary dynamically
deps=[op_gen] + deps)
@@ -573,7 +573,7 @@ def tf_gen_op_wrapper_py(name,
deps = [str(Label("//tensorflow/core:" + name + "_op_lib"))]
tf_cc_binary(
name=tool_name,
- linkopts=if_not_windows(["-lm"]) + cc_linkopts,
+ linkopts=if_not_windows(["-lm","-Wl,-ldl"]) + cc_linkopts,
copts=tf_copts(),
linkstatic=1, # Faster to link this one-time-use binary dynamically
deps=([