From owner-freebsd-current@FreeBSD.ORG Fri Nov 10 17:35:29 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB97216A500; Fri, 10 Nov 2006 17:35:29 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6A7743D55; Fri, 10 Nov 2006 17:35:28 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id A7659622E; Fri, 10 Nov 2006 20:35:26 +0300 (MSK) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id A1405622B; Fri, 10 Nov 2006 20:35:26 +0300 (MSK) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id kAAHZQxT022486; Fri, 10 Nov 2006 20:35:26 +0300 (MSK) (envelope-from ru) Date: Fri, 10 Nov 2006 20:35:26 +0300 From: Ruslan Ermilov To: current@freebsd.org Message-ID: <20061110173526.GA22441@rambler-co.ru> References: <20061110151247.GA64530@zone3000.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <20061110151247.GA64530@zone3000.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: David Xu Subject: Re: libpthread vs libthr. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 17:35:29 -0000 --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--