Skip to content

Commit

Permalink
Add libdl and pthread to linkopts
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Oct 25, 2018
1 parent bbb5bc0 commit 3c0e500
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions native_client/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ tf_cc_shared_object(
linkopts = select({
"//tensorflow:darwin": [],
"//conditions:default": [
"-ldl",
"-pthread",
"-Wl,-Bsymbolic",
"-Wl,-Bsymbolic-functions",
"-Wl,-export-dynamic",
Expand Down Expand Up @@ -123,7 +125,7 @@ cc_binary(
] + DECODER_SOURCES,
includes = DECODER_INCLUDES,
copts = ["-std=c++11"],
linkopts = ["-lm"],
linkopts = ["-lm", "-ldl", "-pthread"],
defines = ["KENLM_MAX_ORDER=6"],
)

Expand All @@ -135,6 +137,6 @@ cc_binary(
] + DECODER_SOURCES,
includes = DECODER_INCLUDES,
copts = ["-std=c++11"],
linkopts = ["-lm"],
linkopts = ["-lm", "-ldl", "-pthread"],
defines = ["KENLM_MAX_ORDER=6"],
)

0 comments on commit 3c0e500

Please sign in to comment.