Re: libpthread vs libthr.

From: David Xu <davidxu_at_freebsd.org>
Date: Sat, 11 Nov 2006 07:56:11 +0800
On Saturday 11 November 2006 01:35, Ruslan Ermilov wrote:
> 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
> _at__at_ -42,7 +42,7 _at__at_ 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,

Hi,

I think this patch is useful. :-)

Thanks,
David Xu
Received on Fri Nov 10 2006 - 22:56:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC