summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--subr/pkg_install.subr6
1 files changed, 3 insertions, 3 deletions
diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr
index ac963f7a..a22a4548 100644
--- a/subr/pkg_install.subr
+++ b/subr/pkg_install.subr
@@ -20,15 +20,15 @@ pkgp_install_dlltool() {
$(find \( -name "*.so" \
-or -name "*.so.*" \
-or -name "*.so.*.*" \
- -or -name "*.so.*.*.*" \) -printf '%P\n');
- do
+ -or -name "*.so.*.*.*" \) -print);
+ do _so_fname="${_so_fname#./}";
case "${_so_fname}" in
*.so) _so_fname_ver=""; ;;
*.so.*) _so_fname_ver="${_so_fname##*.so.}"; ;;
esac;
_so_name="${_so_fname%%.so*}";
_lib_fname="${_so_name}${_so_fname_ver:+.${_so_fname_ver}}.lib.a";
- if [ -e "${_lib_fname}" ] \
+ if [ -e "${PKG_PREFIX}/lib/${_lib_fname}" ] \
|| [ ! -e "${PKG_PREFIX}/lib/$(basename "${_so_fname}")" ] \
|| [ "$(readlink -f "${_so_fname}")" = "/dev/null" \) ]; then
continue;