marcoabreu closed pull request #12475: [MXNET-703] Static linking for libprotobuf with TensorRT URL: https://github.com/apache/incubator-mxnet/pull/12475
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/ci/docker/install/tensorrt.sh b/ci/docker/install/tensorrt.sh index a6258d94f62..61e73ef9a62 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 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
