--- freebsd-lib-6.2-r2.ebuild 2007-09-14 01:50:40 -0600 +++ freebsd-lib-6.2-r3.ebuild 2007-09-16 11:54:45 -0600 @@ -245,6 +245,18 @@ mkinstall || die "Install failed" fi + # Remove libraries that are now mapped to libthr. Even though libmap.conf + # remaps these older threading libs, the old symbols can still get pulled + # in and used, causing nasty crashes. + rm "${D}"/usr/lib/libpthread.a + dosym libthr.a /usr/lib/libpthread.a + rm "${D}"/usr/lib/libpthread.so + dosym libthr.so /usr/lib/libpthread.so + rm "${D}"/usr/lib/libc_r.a + dosym libthr.a /usr/lib/libc_r.a + rm "${D}"/usr/lib/libc_r.so + dosym libthr.so /usr/lib/libc_r.so + # Don't install the rest of the configuration files if crosscompiling [[ ${CTARGET} != ${CHOST} ]] && return 0