Add support for /etc/ld.so.conf
This commit is contained in:
parent
19c59f3917
commit
b4d467977d
@ -41,6 +41,12 @@ _platform_library()
|
|||||||
libdir=$(_platform_variable "LIBDIR")
|
libdir=$(_platform_variable "LIBDIR")
|
||||||
path="/lib:/usr/lib:$libdir"
|
path="/lib:/usr/lib:$libdir"
|
||||||
|
|
||||||
|
if [ -f "$DESTDIR/etc/ld.so.conf" ]; then
|
||||||
|
while read line; do
|
||||||
|
#XXX breaks on whitespace
|
||||||
|
[ -n "${line%#*}" ] && path="$path:$line"
|
||||||
|
done < "$DESTDIR/etc/ld.so.conf"
|
||||||
|
fi
|
||||||
(IFS=:; for p in $path; do
|
(IFS=:; for p in $path; do
|
||||||
if [ -f "$DESTDIR$p/lib$library$SOEXT" ]; then
|
if [ -f "$DESTDIR$p/lib$library$SOEXT" ]; then
|
||||||
echo "-l$library"
|
echo "-l$library"
|
||||||
|
Loading…
Reference in New Issue
Block a user