Fix gcc6.3 build link issue
Signed-off-by: shaohua <shaohua.zhang@intel.com>
This commit is contained in:
parent
b24037513f
commit
aba7fcaf87
@ -404,7 +404,7 @@ def tf_gen_op_wrapper_cc(name,
|
|||||||
tf_cc_binary(
|
tf_cc_binary(
|
||||||
name=tool,
|
name=tool,
|
||||||
copts=tf_copts(),
|
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
|
linkstatic=1, # Faster to link this one-time-use binary dynamically
|
||||||
deps=[op_gen] + deps)
|
deps=[op_gen] + deps)
|
||||||
|
|
||||||
@ -573,7 +573,7 @@ def tf_gen_op_wrapper_py(name,
|
|||||||
deps = [str(Label("//tensorflow/core:" + name + "_op_lib"))]
|
deps = [str(Label("//tensorflow/core:" + name + "_op_lib"))]
|
||||||
tf_cc_binary(
|
tf_cc_binary(
|
||||||
name=tool_name,
|
name=tool_name,
|
||||||
linkopts=if_not_windows(["-lm"]) + cc_linkopts,
|
linkopts=if_not_windows(["-lm","-Wl,-ldl"]) + cc_linkopts,
|
||||||
copts=tf_copts(),
|
copts=tf_copts(),
|
||||||
linkstatic=1, # Faster to link this one-time-use binary dynamically
|
linkstatic=1, # Faster to link this one-time-use binary dynamically
|
||||||
deps=([
|
deps=([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user