Skip to content

Commit aa6a287

Browse files
qinzuoyanacelyc111
authored andcommitted
scripts: fix pack_common.sh (#232)
1 parent 4e74359 commit aa6a287

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/pack_common.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ function get_system_lib()
4444
return
4545
fi
4646
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
4754
}
4855

4956
#USAGE: copy_file src [src...] dest

0 commit comments

Comments
 (0)