--- tensorflow/contrib/boosted_trees/BUILD.orig 2019-07-07 15:35:52.034885000 +0100 +++ tensorflow/contrib/boosted_trees/BUILD 2019-07-07 15:50:02.149725000 +0100 @@ -27,6 +27,10 @@ ":stats_accumulator_ops_kernels", ":training_ops_kernels", ], + linkopts = select({ + "//tensorflow:freebsd": ["-lm", "-lexecinfo",], + }), + alwayslink = 1, ) @@ -40,6 +44,10 @@ ":stats_accumulator_ops_op_lib", ":training_ops_op_lib", ], + linkopts = select({ + "//tensorflow:freebsd": ["-lm", "-lexecinfo",], + }), + ) py_library(