From b4d467977d66757609c2a820e0a3da4e26ea9169 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 1 Jul 2018 05:02:51 +0200 Subject: [PATCH] Add support for /etc/ld.so.conf --- doc/scripts/platform.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/scripts/platform.sh b/doc/scripts/platform.sh index 62aa8cf..2d29d46 100755 --- a/doc/scripts/platform.sh +++ b/doc/scripts/platform.sh @@ -41,6 +41,12 @@ _platform_library() libdir=$(_platform_variable "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 if [ -f "$DESTDIR$p/lib$library$SOEXT" ]; then echo "-l$library"