We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e74359 commit aa6a287Copy full SHA for aa6a287
scripts/pack_common.sh
@@ -44,6 +44,13 @@ function get_system_lib()
44
return
45
fi
46
done;
47
+
48
+ # if get failed by ldconfig, then just extract lib from ldd result
49
+ libname=`ldd ./DSN_ROOT/bin/pegasus_$1/pegasus_$1 2>/dev/null | grep "lib${2}\.so"`
50
+ libname=`echo $libname | cut -f3 -d" "`
51
+ if echo "$libname" | grep -q "lib${2}\.so"; then
52
+ echo "$libname"
53
+ fi
54
}
55
56
#USAGE: copy_file src [src...] dest
0 commit comments