ports/science/py-tensorflow/files/patch-tensorflow_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

22 lines
945 B
Text

--- tensorflow/BUILD.orig 2022-05-22 22:28:22 UTC
+++ tensorflow/BUILD
@@ -938,8 +938,10 @@ tf_cc_shared_object(
],
"//tensorflow:windows": [],
"//tensorflow:freebsd": [
+ "-Wl,--unresolved-symbols=ignore-all",
"-Wl,--version-script,$(location //tensorflow:tf_framework_version_script.lds)",
"-lexecinfo",
+ "-L/usr/local/lib",
],
"//conditions:default": [
"-Wl,--version-script,$(location //tensorflow:tf_framework_version_script.lds)",
@@ -1021,7 +1023,7 @@ tf_cc_shared_object(
# copybara:uncomment_end
"//conditions:default": [
"-z defs",
- "-Wl,--version-script,$(location //tensorflow/c:version_script.lds)",
+ "-L/lib,-L/usr/lib,--unresolved-symbols=ignore-all,-Wl,--version-script,$(location //tensorflow/c:version_script.lds)",
],
}),
per_os_targets = True,