From d15a37b230b219f74f19e1ecd4c6b904a927f8d2 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 8 Sep 2012 13:43:59 +0000 Subject: [PATCH] abuild: add datadir prefix to ldpath So we actually scan those dirs --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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