1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash echo "Custom libs linked" grep "spm" "$(ldd $1)" search="$2" if [[ "${search}" == "" ]]; then search="${LIBNAME}_${LIBVERSION}" fi res=$(ldd $1|grep "spm"|grep "$search") if [[ "${res}" == "" ]]; then echo "Cant find requested lib: $search" exit 1 fi exit 0