aboutsummaryrefslogtreecommitdiff
path: root/ports/tensorflow-cc/README-linux
diff options
context:
space:
mode:
Diffstat (limited to 'ports/tensorflow-cc/README-linux')
-rw-r--r--ports/tensorflow-cc/README-linux13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/tensorflow-cc/README-linux b/ports/tensorflow-cc/README-linux
new file mode 100644
index 000000000..4e0cb514a
--- /dev/null
+++ b/ports/tensorflow-cc/README-linux
@@ -0,0 +1,13 @@
+Warning: Static TensorFlow build contains several external dependencies that may cause linking conflicts
+ (for example, one cannot use both openssl and TensorFlow in the same project, since TensorFlow contains boringssl).
+
+Note: Besides TensorFlow itself, you'll also need to pass its dependencies to the linker:
+ * libm
+ * libdl
+ * libpthread
+for example, '-ltensorflow_cc -lm -ldl -lpthread'.
+
+Note: There is no separate libtensorflow_framework.a as it got merged into libtensorflow_cc.a to avoid linking conflicts.
+
+Note: For some TensorFlow features (e.g. OpRegistry), it might be necessary to tell the linker to include the whole library:
+ '-Wl,--whole-archive -ltensorflow_cc -Wl,--no-whole-archive [rest of linker arguments]'