thread libs: migrate the libpthread.* symlinks on upgrade
authorSimon Schubert <simon.schubert@epfl.ch>
Wed, 7 Oct 2009 18:26:05 +0000 (20:26 +0200)
committerSimon Schubert <simon.schubert@epfl.ch>
Wed, 7 Oct 2009 18:26:05 +0000 (20:26 +0200)
etc/Makefile

index ae55dee..f202906 100644 (file)
@@ -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