This is so that badly written programs don't mistakenly pick up either
libc_r or libthread_xu. The only correct way to get threading support
is to link to libpthread.
By moving the underlaying thread libs to a directory that is not
searched by the linker, we can enforce this policy.
Requested-by: hasso@
TO_REMOVE+=/usr/share/man/cat9/make_sub_dev.9.gz
TO_REMOVE+=/usr/share/man/man9/make_sub_dev.9.gz
TO_REMOVE+=/usr/libdata/msdosfs
+TO_REMOVE+=/usr/lib/libc_r.so
+TO_REMOVE+=/usr/lib/libthread_xu.so
..
security
..
+ thread
+ ..
aout
..
compat
AINC= -I${.CURDIR}/../libc/${MACHINE_ARCH} -I${.CURDIR}/uthread
PRECIOUSLIB= yes
+LIBDIR= /usr/lib/thread
+NOPROFILE= yes
+
.include "${.CURDIR}/uthread/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
linkinstall:
# Do not overwrite existing symlinks
if [ ! -e ${DESTDIR}${TARGET_SHLIBDIR}/${SONAME} ]; then \
- ${LN} -fs lib${THREAD_LIB}.so \
+ ${LN} -fs thread/lib${THREAD_LIB}.so \
${DESTDIR}${TARGET_SHLIBDIR}/${SONAME}; \
fi
if [ ! -e ${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a ]; then \
- ${LN} -fs lib${THREAD_LIB}.a \
+ ${LN} -fs thread/lib${THREAD_LIB}.a \
${DESTDIR}${TARGET_LIBDIR}/${LIBNAME}.a; \
fi
PRECIOUSLIB= yes
+LIBDIR= /usr/lib/thread
+NOPROFILE= yes
+
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
.include "${.CURDIR}/thread/Makefile.inc"