From: Simon Schubert Date: Wed, 7 Oct 2009 18:26:05 +0000 (+0200) Subject: thread libs: migrate the libpthread.* symlinks on upgrade X-Git-Url: https://gitweb.dragonflybsd.org/~polachok/dragonfly.git/commitdiff_plain/383ea937a735b24fcd0d714dcb4facfba10c947a thread libs: migrate the libpthread.* symlinks on upgrade --- diff --git a/etc/Makefile b/etc/Makefile index ae55deef2e..f2029067bc 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -230,6 +230,14 @@ upgrade_etc: preupgrade remove-obsolete-files rm -rf ${DESTDIR}/boot/modules.old/modules.old .endif .endif + for ext in a so.0; do \ + f=${DESTDIR}/usr/lib/libpthread.$$ext; \ + dest=$$(readlink "$$f"); \ + case "$$dest" in \ + libthread_xu.*|libc_r.*) \ + ln -fs thread/$$dest $$f ;; \ + esac; \ + done ldconfig -R mkdir -p ${DESTDIR}/dev