2 # $1 contains full path to the .so to verify
3 # $2 contains message to print when the verification fails
9 # TODO: add support for verification on Alpine Linux
10 if [ "$ID" != "alpine" ]; then
11 ldd -r $1 | awk 'BEGIN {count=0} /undefined symbol:/ { if (count==0) {print "Undefined symbol(s) found:"} print " " $3; count++ } END {if (count>0) exit(1)}'
20 # TODO: add support for verification on non-Linux Unixes (except of OSX)