--- tensorflow/tools/proto_text/BUILD.orig	2022-05-22 22:28:22 UTC
+++ tensorflow/tools/proto_text/BUILD
@@ -60,6 +60,7 @@ cc_library(
             "-lm",
             "-lpthread",
             "-lrt",
+            "-L%%LOCALBASE%%/lib",
         ],
     }),
     deps = [
