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 ]
|
if [ "$1" = c ]
|
||||||
then
|
then
|
||||||
make && make test
|
make && make test
|
||||||
if [ -x /lib/ld-linux-*.so.2 ]
|
LD_LIBRARY_PATH=. ./test /usr/bin/top
|
||||||
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
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user