abuild: add datadir prefix to ldpath

So we actually scan those dirs
This commit is contained in:
Natanael Copa 2012-09-08 13:43:59 +00:00
parent dfa8e825e7
commit d15a37b230

View File

@ -926,7 +926,7 @@ find_scanelf_paths() {
local controldir="$1" datadir="$2"
local paths="$datadir/lib:$datadir/usr/lib" i= rpath=
if [ -n "$ldpath" ]; then
paths="$paths:$ldpath"
paths="$paths:$(echo "$ldpath" | sed "s|\(^\|:\)|\1$datadir|g")"
fi
# search in all rpaths
for rpath in "$pkgbasedir"/.control.*/.rpath; do