summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-08 13:43:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-08 13:43:59 +0000
commitd15a37b230b219f74f19e1ecd4c6b904a927f8d2 (patch)
tree37daa1d90f769deacd598767e29fca7a7b1bf8e5 /abuild.in
parentdfa8e825e70a7db2ae2caa0a51b33c3056000260 (diff)
downloadabuild-d15a37b230b219f74f19e1ecd4c6b904a927f8d2.tar.gz
abuild-d15a37b230b219f74f19e1ecd4c6b904a927f8d2.tar.bz2
abuild-d15a37b230b219f74f19e1ecd4c6b904a927f8d2.tar.xz
abuild-d15a37b230b219f74f19e1ecd4c6b904a927f8d2.zip
abuild: add datadir prefix to ldpath
So we actually scan those dirs
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in2
1 files changed, 1 insertions, 1 deletions
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