Date: Sat, 11 Nov 2006 07:56:11 +0800 From: David Xu <davidxu@freebsd.org> To: freebsd-current@freebsd.org Cc: current@freebsd.org Subject: Re: libpthread vs libthr. Message-ID: <200611110756.11517.davidxu@freebsd.org> In-Reply-To: <20061110173526.GA22441@rambler-co.ru> References: <20061110151247.GA64530@zone3000.net> <20061110173526.GA22441@rambler-co.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
> @@ -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,
Hi,
I think this patch is useful. :-)
Thanks,
David Xu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611110756.11517.davidxu>
