From c5ab3dd177dc16bb211821e38219f350a613b5e8 Mon Sep 17 00:00:00 2001 From: Patrick Nguyen Date: Thu, 20 Oct 2016 12:09:18 -0800 Subject: Merge changes from github. Change: 136750267 --- tensorflow/tools/proto_text/BUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'tensorflow/tools/proto_text') diff --git a/tensorflow/tools/proto_text/BUILD b/tensorflow/tools/proto_text/BUILD index af80d3a441..d439c9abfd 100644 --- a/tensorflow/tools/proto_text/BUILD +++ b/tensorflow/tools/proto_text/BUILD @@ -42,12 +42,17 @@ cc_library( name = "gen_proto_text_functions_lib", srcs = ["gen_proto_text_functions_lib.cc"], hdrs = ["gen_proto_text_functions_lib.h"], - linkopts = [ - "-lm", - "-lpthread", - ] + select({ - "//tensorflow:darwin": [], - "//conditions:default": ["-lrt"], + linkopts = select({ + "//tensorflow:windows": [], + "//tensorflow:darwin": [ + "-lm", + "-lpthread", + ], + "//conditions:default": [ + "-lm", + "-lpthread", + "-lrt", + ], }), deps = [ "//tensorflow/core:lib_proto_parsing", -- cgit v1.2.3