summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/release/Makefile b/release/Makefile
index d07116e..4ea1851 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -458,7 +458,11 @@ release rerelease:
# NB: these may fail if the host is running w/o devfs
echo "umount /dev >/dev/null 2>&1 || true" >> ${_MK}
echo "mount -t devfs devfs /dev >/dev/null 2>&1 || true" >> ${_MK}
- echo "/etc/rc.d/ldconfig start" >> ${_MK}
+ echo "if [ -x /etc/rc.d/ldconfig ]; then" >> ${_MK}
+ echo " /etc/rc.d/ldconfig start" >> ${_MK}
+ echo "else" >> ${_MK}
+ echo " ldconfig /lib /usr/lib /usr/local/lib || true" >> ${_MK}
+ echo "fi" >> ${_MK}
echo "if [ ! -f /tmp/.world_done ]; then" >> ${_MK}
echo " cd /usr/src" >> ${_MK}
echo " ${CROSSMAKE} ${WORLD_FLAGS} -DNOCLEAN buildworld && \\" >> ${_MK}
OpenPOWER on IntegriCloud