From owner-cvs-all@FreeBSD.ORG Thu Jul 17 18:02:37 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A8ED37B401; Thu, 17 Jul 2003 18:02:37 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7703D43FB1; Thu, 17 Jul 2003 18:02:36 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h6I12Yju057238; Thu, 17 Jul 2003 18:02:35 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h6I12YiF057237; Thu, 17 Jul 2003 18:02:34 -0700 (PDT) Date: Thu, 17 Jul 2003 18:02:34 -0700 From: "David O'Brien" To: deischen@FreeBSD.org Message-ID: <20030718010234.GA57201@dragon.nuxi.com> References: <200307172302.h6HN2UfD036583@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: David Xu cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libpthread Makefile src/lib/libpthread/test sigsuspend_d.c src/lib/libpthread/thread thr_cancel.c thr_concurrency.c thr_create.c thr_find_thread.c thr_init.c thr_kern.c thr_nanosleep.c thr_private.h thr_sig.c thr_sigmask.c... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 01:02:38 -0000 On Thu, Jul 17, 2003 at 07:12:56PM -0400, Daniel Eischen wrote: > On Thu, 17 Jul 2003, David Xu wrote: > > > davidxu 2003/07/17 16:02:30 PDT > > > > FreeBSD src repository > > > > Modified files: > > lib/libpthread Makefile > > lib/libpthread/test sigsuspend_d.c > > lib/libpthread/thread thr_cancel.c thr_concurrency.c > > thr_create.c thr_find_thread.c > > thr_init.c thr_kern.c thr_nanosleep.c > > thr_private.h thr_sig.c thr_sigmask.c > > thr_sigpending.c thr_sigsuspend.c > > thr_sigwait.c thr_yield.c > > Log: > > o Eliminate upcall for PTHREAD_SYSTEM_SCOPE thread, now it > > is system bound thread and when it is blocked, no upcall is generated. > > > > o Add ability to libkse to allow it run in pure 1:1 threading mode, > > defining SYSTEM_SCOPE_ONLY in Makefile can turn on this option. > > Anyone know what makefile hackery to use to get a library > built twice, each time with a different name? We want > to build libpthread as M:N and libthread as 1:1, all > with the same sources, but with SYSTEM_SCOPE_ONLY > defined for the latter build. Do we need a different > directory just for this? I would create src/lib/libkse/{libpthread,libthread}, and have src/lib/libkse/Makefile.inc0 that contains everything to build the libs except for the -D's and the lib name. Have src/lib/libkse/{libpthread,libthread}/Makefile include ../Makefile.inc0 and define the missing parts. The BSD Makefile framework really does depend and expect separate directories for each product. -- -- David (obrien@FreeBSD.org)