From 9f289ebe748184e39e5a9d5af21a4359b03d681f Mon Sep 17 00:00:00 2001 From: Kellen Sunderland Date: Fri, 7 Sep 2018 09:54:14 +0200 Subject: [PATCH] [MXNET-703] Static linking for libprotobuf with TensorRT --- 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 a6258d94f62f..61e73ef9a62f 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