libpthread vs libthr.

Ruslan Ermilov ru at freebsd.org
Fri Nov 10 17:35:29 UTC 2006


Hi,

To make user's life easier, I suggest the following simple patch.
Its effect on platforms where libpthread is available is to (sym)link
libthr to libpthread if WITHOUT_LIBPTHREAD is set in /etc/src.conf.
This would allow more people interested in libthr testing to more
easily do it.  (Of course already linked applications wouldn't
magically start using libthr without also patching /etc/libmap.conf.)

%%%
Index: Makefile
===================================================================
RCS file: /home/ncvs/src/lib/libthr/Makefile,v
retrieving revision 1.20
diff -u -p -r1.20 Makefile
--- Makefile	22 Aug 2006 07:51:06 -0000	1.20
+++ Makefile	10 Nov 2006 17:27:40 -0000
@@ -42,7 +42,7 @@ PRECIOUSLIB=
 .include "${.CURDIR}/sys/Makefile.inc"
 .include "${.CURDIR}/thread/Makefile.inc"
 
-.if ${MACHINE_ARCH} == "sparc64"
+.if ${MACHINE_ARCH} == "sparc64" || ${MK_LIBPTHREAD} == "no"
 SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
 .if !defined(NO_PIC)
 SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
%%%


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20061110/5549947f/attachment.pgp


More information about the freebsd-current mailing list