Skip to content

Commit

Permalink
scripts: fix pack_common.sh (apache#232)
Browse files Browse the repository at this point in the history
Former-commit-id: e4d5e31feda11907b23e23f6a46b8a4b6c2c9014 [formerly f2d1300]
Former-commit-id: e7225726def8ffd967edf6e3ed5772c1ba28b49f
  • Loading branch information
qinzuoyan authored Dec 14, 2018
1 parent 4253540 commit f0cfdd2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/pack_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ function get_system_lib()
return
fi
done;

# if get failed by ldconfig, then just extract lib from ldd result
libname=`ldd ./DSN_ROOT/bin/pegasus_$1/pegasus_$1 2>/dev/null | grep "lib${2}\.so"`
libname=`echo $libname | cut -f3 -d" "`
if echo "$libname" | grep -q "lib${2}\.so"; then
echo "$libname"
fi
}

#USAGE: copy_file src [src...] dest
Expand Down

0 comments on commit f0cfdd2

Please sign in to comment.