[Dist] Enable shared-lib option of tensorflow
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 17 Jul 2019 10:00:57 +0000 (19:00 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 17 Jul 2019 10:16:16 +0000 (19:16 +0900)
Let's enable shared_lib mode.

Change-Id: I5d41bfd852f94b83dcd28bf29ea5ad2322f118bb
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
debian/rules
packaging/tensorflow.spec

index baee2ef..d8aca92 100755 (executable)
@@ -122,7 +122,7 @@ build:
 
        sed -i "s|ExternalProject_Add(\\(.*\\)$$|ExternalProject_add(\\1\\n\\tDOWNLOAD_COMMAND echo\\n\\tUPDATE_DISCONNECTED 1\\n|" tensorflow/contrib/cmake/external/*.cmake
 
-       cd ${topdir}/build && cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_ZLIB=ON
+       cd ${topdir}/build && cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_ZLIB=ON -Dtensorflow_BUILD_SHARED_LIB=ON
 
        printf 'PWD=`pwd`\n' > temp.sh
        printf 'for F in *.cmake ; do\n' >> temp.sh
index 08aa565..4888961 100644 (file)
@@ -241,7 +241,7 @@ pushd build
 # Seems some arguments of %%cmake is causing errors.
 # -Dtensorflow_ENABLE_SSL_SUPPORT=OFF  Cut the dependency to Go (not available in Tizen)
 # Use -DCMAKE_INSTALL_LIBDIR=lib because of discrepency in png install path.
-cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_INSTALL_LIBDIR=lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_PROTOBUF=ON -Dsystemlib_ZLIB=ON -Dsystemlib_GRPC=ON
+cmake ../tensorflow/contrib/cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=/usr/lib -DCMAKE_INSTALL_LIBDIR=lib -DINCLUDE_INSTALL_DIR=/usr/include -Dtensorflow_ENABLE_SSL_SUPPORT=OFF -Dsystemlib_PROTOBUF=ON -Dsystemlib_ZLIB=ON -Dsystemlib_GRPC=ON -Dtensorflow_BUILD_SHARED_LIB=ON
 
 # QEMU unsupported syscall error is being writtin into .cmake files
 pushd CMakeFiles/pywrap_tensorflow_internal.dir