ports/science/py-tensorflow/files/patch-third__party_systemlibs_protobuf.BUILD
Anthony Donnelly 56dc0e449f science/py-tensorflow: Update 1.15.5 -> 2.9.1
Big thank you to Anthony Donnelly for updating this difficult port.

PR:		266303
2022-09-13 13:32:36 -07:00

25 lines
666 B
Text

--- third_party/systemlibs/protobuf.BUILD.orig 2022-09-01 05:13:59 UTC
+++ third_party/systemlibs/protobuf.BUILD
@@ -61,19 +61,19 @@ genrule(
cc_library(
name = "protobuf",
- linkopts = ["-lprotobuf"],
+ linkopts = ["-L%%LOCALBASE%%/lib", "-lprotobuf"],
visibility = ["//visibility:public"],
)
cc_library(
name = "protobuf_headers",
- linkopts = ["-lprotobuf"],
+ linkopts = ["-L%%LOCALBASE%%/lib", "-lprotobuf"],
visibility = ["//visibility:public"],
)
cc_library(
name = "protoc_lib",
- linkopts = ["-lprotoc"],
+ linkopts = ["-L%%LOCALBASE%%/lib", "-lprotoc"],
visibility = ["//visibility:public"],
)