More generic way to change library path

This commit is contained in:
Julien Palard 2016-03-03 10:16:05 +01:00
parent d4ff3e0da1
commit fe3afd8501
1 changed files with 1 additions and 8 deletions

View File

@ -55,14 +55,7 @@ make clean
if [ "$1" = c ]
then
make && make test
if [ -x /lib/ld-linux-*.so.2 ]
then
echo Using /lib/ld-linux-*.so.2 to run test
/lib/ld-linux-*.so.2 --library-path . ./test /usr/bin/top
else
echo Using /lib/ld-linux.so.2 to run test
/lib/ld-linux.so.2 --library-path . ./test /usr/bin/top
fi
LD_LIBRARY_PATH=. ./test /usr/bin/top
exit
fi