summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-09-10 11:53:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-09-10 11:53:44 +0000
commit0af203816840924afae5a162acf2b947b620aa23 (patch)
tree6a5d700b1c6afbb34c1e09cea3c4024acf0d1169 /abuild.in
parentc57a9070f27ad10f507f36a88b01ab6f019b46cd (diff)
downloadabuild-0af203816840924afae5a162acf2b947b620aa23.tar.gz
abuild-0af203816840924afae5a162acf2b947b620aa23.tar.bz2
abuild-0af203816840924afae5a162acf2b947b620aa23.tar.xz
abuild-0af203816840924afae5a162acf2b947b620aa23.zip
abuild: add support for option 'ldpath-recursive'
This option will enable recursive search of shared-objects, which is disable by default.
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 60cb91c..db9fdf9 100755
--- a/abuild.in
+++ b/abuild.in
@@ -942,15 +942,19 @@ find_scanelf_paths() {
scan_shared_objects() {
local name="$1" controldir="$2" datadir="$3"
+ local opt=
# allow spaces in paths
IFS=:
set -- $(find_scanelf_paths "$controldir" "$datadir")
unset IFS
+ if options_has "ldpath-recursive"; then
+ opt="--recursive"
+ fi
msg "Scanning shared objects"
# lets tell all the .so files this package provides in .provides-so
- scanelf --nobanner --soname "$@" | while read etype soname file; do
+ scanelf --nobanner --soname $opt "$@" | while read etype soname file; do
# if soname field is missing, soname will be the filepath
sover=0
if [ -z "$file" ]; then