You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2018/09/10 12:59:54 UTC

[incubator-mxnet] branch master updated: [MXNET-703] Static linking for libprotobuf with TensorRT (#12475)

This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new d410de1  [MXNET-703] Static linking for libprotobuf with TensorRT (#12475)
d410de1 is described below

commit d410de1d28d719902409a77a841d0872c74423ef
Author: Kellen Sunderland <ke...@gmail.com>
AuthorDate: Mon Sep 10 14:59:36 2018 +0200

    [MXNET-703] Static linking for libprotobuf with TensorRT (#12475)
---
 ci/docker/install/tensorrt.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ci/docker/install/tensorrt.sh b/ci/docker/install/tensorrt.sh
index a6258d9..61e73ef 100755
--- a/ci/docker/install/tensorrt.sh
+++ b/ci/docker/install/tensorrt.sh
@@ -30,9 +30,12 @@ apt-get install -y automake libtool
 git clone --recursive -b 3.5.1.1 https://github.com/google/protobuf.git
 cd protobuf
 ./autogen.sh
-./configure
+./configure --disable-shared CXXFLAGS=-fPIC
 make -j$(nproc)
 make install
+rm -rf /usr/local/lib/libprotobuf-lite.so*
+rm -rf /usr/local/lib/libprotobuf.so*
+rm -rf /usr/local/lib/libprotoc.so*
 ldconfig
 popd