From owner-cvs-all Fri Jan 24 9:54:52 2003 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 6C4B337B405 for ; Fri, 24 Jan 2003 09:54:51 -0800 (PST) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70FD643E4A for ; Fri, 24 Jan 2003 09:54:50 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 4358 invoked from network); 24 Jan 2003 17:54:54 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 24 Jan 2003 17:54:54 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h0OHslUT045626; Fri, 24 Jan 2003 12:54:47 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030124020731.B4730@FreeBSD.org> Date: Fri, 24 Jan 2003 12:54:41 -0500 (EST) From: John Baldwin To: Max Khon Subject: Re: Compiling libc and libc_r broken with new compiler code gene Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, joseph 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 On 24-Jan-2003 Max Khon wrote: > hi, there! > > On Fri, Jan 24, 2003 at 12:47:13AM -0800, joseph wrote: > >> Hi - IS libc_r and libc Makefile process slightly broken??? >> If you build libc and try to install it works but then >> the compiling of any program using THIS libc is broken using >> the RELEASE-5.0 make files. It says the pthread references >> are not linked into the libc.so -- Where do these get linked in?? >> >> I have been experimenting with a new code generator I wrote for gnu >> 3.2.1 (C/C++) and it can really speed things up. >> >> When I recompiled the libc >> and libc_r the compiler stopped working under 5.0-RELEASE, but under >> 4.7-STABLE it works fine and gives the 160%+ speed improvement... >> It complains of not finding a pthread references in the libc.so file >> when the compiler trys to link. > > you should use -lc_r in 5.x to link pthreads in > (or -lpthread when it will be ready, notice an 'l' after '-') > -pthread (which should be used in 4.x and earlier to link pthreads in) > is a no-op in 5.x afaik -pthread still works in 5.x. It basically means -lc_r on 5.x. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message