Fix RPATH in package.sh. Also fix the run script with --bundle-libs.

1.6
Jon Leighton 2012-07-24 18:17:52 +01:00
parent c856f13fec
commit de7402b444
2 changed files with 4 additions and 2 deletions

View File

@ -92,10 +92,12 @@ if [[ $OSTYPE != darwin* ]]; then
echo '#!/bin/sh' >> $run
echo 'path=$(dirname $(dirname $(readlink -f $0)))' >> $run
echo 'export LD_LIBRARY_PATH=$path/lib' >> $run
echo 'exec $path/lib/'$libld' $phantomjs $@' >> $run
echo 'exec $path/lib/'$libld' $path/bin/phantomjs.bin $@' >> $run
chmod +x $run
echo "done"
echo
else
chrpath -r '$ORIGIN/../lib' $phantomjs
fi
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
apt-get update
apt-get install -y build-essential git-core libssl-dev libfontconfig1-dev gdb binutils-gold
apt-get install -y build-essential git-core libssl-dev libfontconfig1-dev gdb binutils-gold chrpath
if [[ ! -d phantomjs ]]; then
git clone git://github.com/ariya/phantomjs.git