diff --git a/abuild.in b/abuild.in index 61a13c1..889fa75 100755 --- a/abuild.in +++ b/abuild.in @@ -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