abuild: add support for option 'ldpath-recursive'
This option will enable recursive search of shared-objects, which is disable by default.
This commit is contained in:
parent
c57a9070f2
commit
0af2038168
@ -942,15 +942,19 @@ find_scanelf_paths() {
|
|||||||
|
|
||||||
scan_shared_objects() {
|
scan_shared_objects() {
|
||||||
local name="$1" controldir="$2" datadir="$3"
|
local name="$1" controldir="$2" datadir="$3"
|
||||||
|
local opt=
|
||||||
|
|
||||||
# allow spaces in paths
|
# allow spaces in paths
|
||||||
IFS=:
|
IFS=:
|
||||||
set -- $(find_scanelf_paths "$controldir" "$datadir")
|
set -- $(find_scanelf_paths "$controldir" "$datadir")
|
||||||
unset IFS
|
unset IFS
|
||||||
|
|
||||||
|
if options_has "ldpath-recursive"; then
|
||||||
|
opt="--recursive"
|
||||||
|
fi
|
||||||
msg "Scanning shared objects"
|
msg "Scanning shared objects"
|
||||||
# lets tell all the .so files this package provides in .provides-so
|
# 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
|
# if soname field is missing, soname will be the filepath
|
||||||
sover=0
|
sover=0
|
||||||
if [ -z "$file" ]; then
|
if [ -z "$file" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user