Code cleanup
This commit is contained in:
parent
b4d467977d
commit
c9ca60a782
@ -27,6 +27,7 @@
|
|||||||
#variables
|
#variables
|
||||||
CONFIGSH="${0%/platform.sh}/config.sh"
|
CONFIGSH="${0%/platform.sh}/config.sh"
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
|
LDSOCONF="/etc/ld.so.conf"
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
PROGNAME="platform.sh"
|
PROGNAME="platform.sh"
|
||||||
SOEXT=".so"
|
SOEXT=".so"
|
||||||
@ -41,11 +42,11 @@ _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
|
if [ -f "$DESTDIR$LDSOCONF" ]; then
|
||||||
while read line; do
|
while read line; do
|
||||||
#XXX breaks on whitespace
|
#XXX breaks on whitespace
|
||||||
[ -n "${line%#*}" ] && path="$path:$line"
|
[ -n "${line%#*}" ] && path="$path:$line"
|
||||||
done < "$DESTDIR/etc/ld.so.conf"
|
done < "$DESTDIR$LDSOCONF"
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user