More generic way to change library path
This commit is contained in:
parent
d4ff3e0da1
commit
fe3afd8501
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue