summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/oh-shlibdeps.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/oh-shlibdeps.sh b/src/oh-shlibdeps.sh
index 86ff114..910b194 100644
--- a/src/oh-shlibdeps.sh
+++ b/src/oh-shlibdeps.sh
@@ -31,8 +31,11 @@ find_lib()
local pkg=
local dir=
- rtld_dirs="$(@LDCONFIG@ -v 2>/dev/null | \
- sed -n 's/^\([^\t].*\):$/\1/p')"
+ if [ '@multiarch_libdir@' = 'yes' ]; then
+ rtld_dirs="/lib/${OPK_HOST_ARCH} /usr/lib/${OPK_HOST_ARCH}"
+ else
+ rtld_dirs='/lib /usr/lib'
+ fi
# Check just-built packages.
for pkg in *.data/; do