diff options
author | 2016-03-21 07:39:47 -0800 | |
---|---|---|
committer | 2016-03-21 08:57:06 -0700 | |
commit | 0c599d7f6cc246f08a5abed185f790d9ae2265b2 (patch) | |
tree | 211f204366c358da4c979980ea839f177174fad0 /tensorflow/g3doc/how_tos/adding_an_op/index.md | |
parent | c05ca6b405fda1d6f368270e9108308b67f2e388 (diff) |
Added -fPIC to the command line in instructions to compile user op.
Fixes #1569
Change: 117716771
Diffstat (limited to 'tensorflow/g3doc/how_tos/adding_an_op/index.md')
-rw-r--r-- | tensorflow/g3doc/how_tos/adding_an_op/index.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/g3doc/how_tos/adding_an_op/index.md b/tensorflow/g3doc/how_tos/adding_an_op/index.md index f295225b4c..492cb2d104 100644 --- a/tensorflow/g3doc/how_tos/adding_an_op/index.md +++ b/tensorflow/g3doc/how_tos/adding_an_op/index.md @@ -133,7 +133,7 @@ to compile your Op into a dynamic library. ```bash TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())') -g++ -std=c++11 -shared zero_out.cc -o zero_out.so -I $TF_INC +g++ -std=c++11 -shared zero_out.cc -o zero_out.so -fPIC -I $TF_INC ``` ### With TensorFlow source installation |