Skip to content

Commit

Permalink
[MXNET-703] Static linking for libprotobuf with TensorRT (apache#12475)
Browse files Browse the repository at this point in the history
  • Loading branch information
KellenSunderland authored and aaronmarkham committed Sep 11, 2018
1 parent 40c8868 commit 649b65e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/docker/install/tensorrt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 649b65e

Please sign in to comment.