Trashy support of ld-linux-*.so like for x64

This commit is contained in:
Julien 2011-10-22 18:36:15 +02:00
parent f2ff0cd74c
commit 031d9d0fb4
1 changed files with 9 additions and 1 deletions

View File

@ -26,11 +26,19 @@ EOF
exit
fi
make clean
if [ "$1" = c ]
then
make && make test
/lib/ld-linux.so.2 --library-path . ./test /usr/bin/top
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
exit
fi