Date: Fri, 10 Nov 2006 20:35:26 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: current@freebsd.org Cc: David Xu <davidxu@freebsd.org> Subject: Re: libpthread vs libthr. Message-ID: <20061110173526.GA22441@rambler-co.ru> In-Reply-To: <20061110151247.GA64530@zone3000.net> References: <20061110151247.GA64530@zone3000.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--ReaqsoxgOBHFXBhH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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=3D
.include "${.CURDIR}/sys/Makefile.inc"
.include "${.CURDIR}/thread/Makefile.inc"
=20
-.if ${MACHINE_ARCH} =3D=3D "sparc64"
+.if ${MACHINE_ARCH} =3D=3D "sparc64" || ${MK_LIBPTHREAD} =3D=3D "no"
SYMLINKS+=3Dlib${LIB}.a ${LIBDIR}/libpthread.a
.if !defined(NO_PIC)
SYMLINKS+=3Dlib${LIB}.so ${LIBDIR}/libpthread.so
%%%
Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
--ReaqsoxgOBHFXBhH
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
iD8DBQFFVLheqRfpzJluFF4RAvk4AKCKc1ICej0uAyJXPmUTsRtvof5HLwCfT2/6
SN8sWguthJx5nLd2x+Bw8T0=
=Utsb
-----END PGP SIGNATURE-----
--ReaqsoxgOBHFXBhH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061110173526.GA22441>
