package bbclass: only run ldconfig when there's a ld.so.conf present
authorKoen Kooi <koen@openembedded.org>
Sat, 25 Oct 2008 16:58:00 +0000 (18:58 +0200)
committerKoen Kooi <koen@openembedded.org>
Sat, 25 Oct 2008 16:58:00 +0000 (18:58 +0200)
classes/package.bbclass

index fd72a6d..1dc26fd 100644 (file)
@@ -558,7 +558,7 @@ emit_pkgdata[dirs] = "${PKGDATA_DIR}/runtime"
 
 ldconfig_postinst_fragment() {
 if [ x"$D" = "x" ]; then
-       [ -x /sbin/ldconfig ] && /sbin/ldconfig
+       [ -x /sbin/ldconfig ] && [ -e /etc/ld.so.conf ] && /sbin/ldconfig
 fi
 }