summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-11-17 22:33:26 +0200
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-12-29 20:26:58 +0200
commit3bdbd4dc484945bfaa305d1df489a7805998139a (patch)
treefa34a8f8fdb4a3cff5cc05bc7867e5283ee4f5de
parent8be8b7e41a27b0feb12b75fed42bee34258f1e35 (diff)
Include libprotoc
-rwxr-xr-xtools/make_linux_package.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/make_linux_package.sh b/tools/make_linux_package.sh
index 0c8e826..c48a807 100755
--- a/tools/make_linux_package.sh
+++ b/tools/make_linux_package.sh
@@ -24,6 +24,8 @@ mv $DEST/generator/dist $DEST/generator-bin
# Package the protoc compiler
cp `which protoc` $DEST/generator-bin/protoc.bin
+LIBPROTOC=$(ldd `which protoc` | grep -o '/.*libprotoc[^ ]*')
+cp $LIBPROTOC $DEST/generator-bin/
cat > $DEST/generator-bin/protoc << EOF
#!/bin/bash
SCRIPTDIR=\$(dirname \$(readlink -f \$0))