Date: Fri, 24 Jan 2003 12:54:41 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Max Khon <fjoe@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, joseph <altea@attbi.com> Subject: Re: Compiling libc and libc_r broken with new compiler code gene Message-ID: <XFMail.20030124125441.jhb@FreeBSD.org> In-Reply-To: <20030124020731.B4730@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jhb@FreeBSD.org> <>< 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20030124125441.jhb>