From: Matthew Dillon Date: Fri, 6 May 2011 08:24:28 +0000 (-0700) Subject: libpthread - Always override the symlinks X-Git-Tag: v2.12.0~671 X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/09b22f869f512f2e6bbc0ec69a00b33359c79395 libpthread - Always override the symlinks * Always override the symlinks for /usr/lib/libpthread* to ensure that very old systems are properly upgraded. * If the user wants to point the symlink at a different threading library the use rcan set THREAD_LIB in /etc/make.conf. Reported-by: Vitaly Shevtsov --- diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile index 9a925d3635..e2df584dbc 100644 --- a/lib/libpthread/Makefile +++ b/lib/libpthread/Makefile @@ -133,14 +133,11 @@ MLINKS+= \ realinstall: linkinstall linkinstall: - # Do not overwrite existing symlinks - if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \ - ${LN} -fs thread/lib${THREAD_LIB}.so \ - ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \ - fi - if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \ - ${LN} -fs thread/lib${THREAD_LIB}.a \ - ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \ - fi + # Always overwrite existing symlinks. If the user wants the + # library to point elsewhere he can set THREAD_LIB in /etc/make.conf. + ${LN} -fs thread/lib${THREAD_LIB}.so \ + ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \ + ${LN} -fs thread/lib${THREAD_LIB}.a \ + ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \ .include