From owner-cvs-all Sat May 11 1:16:17 2002 Delivered-To: cvs-all@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 9D0BD37B406; Sat, 11 May 2002 01:16:13 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id 6D062AE279; Sat, 11 May 2002 01:16:13 -0700 (PDT) Date: Sat, 11 May 2002 01:16:13 -0700 From: Alfred Perlstein To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/uthread Makefile.inc uthread_autoinit.c uthread_autoinit.cc Message-ID: <20020511081613.GG90188@elvis.mu.org> References: <200205110813.g4B8Dgo23554@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205110813.g4B8Dgo23554@freefall.freebsd.org> User-Agent: Mutt/1.3.27i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Alfred Perlstein [020511 01:13] wrote: > alfred 2002/05/11 01:13:42 PDT > > Modified files: > lib/libc_r/uthread Makefile.inc > Added files: > lib/libc_r/uthread uthread_autoinit.c > Removed files: > lib/libc_r/uthread uthread_autoinit.cc > Log: > Use GCC's __attribute__ ((constructor)) mechanism to invoke the pthread > startup code rather than a static C++ object since c++ seems to be broken. > > This doesn't seem to work for staticically linked program just yet, I'll > give that some more work when I get a chance. > > Revision Changes Path > 1.31 +1 -1 src/lib/libc_r/uthread/Makefile.inc > 1.1 +61 -0 src/lib/libc_r/uthread/uthread_autoinit.c (new) > 1.4 +0 -89 src/lib/libc_r/uthread/uthread_autoinit.cc (dead) Something is bizarro wrt __weak_reference and static linking, anyone have any ideas? -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message