summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/checkldd.sh
blob: e728fd85d9d9e1f95ee3d2a98beb867830f39ed4 (plain) (blame)
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