Add support for absolute paths when parsing ld.so.conf
This commit is contained in:
parent
4056ea7e6d
commit
221ed78b1d
|
@ -73,7 +73,11 @@ _library_ldsoconf()
|
||||||
|
|
||||||
#recurse into the file included
|
#recurse into the file included
|
||||||
line="${line#include }"
|
line="${line#include }"
|
||||||
|
if [ "${line#/}" = "$line" ]; then
|
||||||
files="${ldsoconf%/*}/$line"
|
files="${ldsoconf%/*}/$line"
|
||||||
|
else
|
||||||
|
files="$DESTDIR${line#include }"
|
||||||
|
fi
|
||||||
#XXX breaks on whitespace
|
#XXX breaks on whitespace
|
||||||
for filename in $files; do
|
for filename in $files; do
|
||||||
[ -f "$filename" ] &&
|
[ -f "$filename" ] &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user