Skip to content

Commit

Permalink
scripts: fix pack_common.sh (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinzuoyan authored Dec 14, 2018
1 parent d0b6530 commit f2d1300
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 f2d1300

Please sign in to comment.