From owner-freebsd-current Wed Jan 24 10: 4:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 9A7BB37B400 for ; Wed, 24 Jan 2001 10:04:14 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.1/8.11.1) with ESMTP id f0OI4Da18391 for ; Wed, 24 Jan 2001 10:04:14 -0800 (PST) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=XFMail.1.3.p0.FreeBSD:010124100413:25635=_" Date: Wed, 24 Jan 2001 10:04:13 -0800 (PST) Organization: Polstra & Co., Inc. From: John Polstra To: current@freebsd.org Subject: Please test this patch to restore "cc -pthread" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format --_=XFMail.1.3.p0.FreeBSD:010124100413:25635=_ Content-Type: text/plain; charset=us-ascii Here is a patch which should make "cc -pthread" work properly with Dan Eischen's recent libc & libc_r changes. I'd appreciate it if some people running up-to-date -current would test it. I especially need testers who can use it to build some threaded applications. Recommended test procedure: - apply the patch to src/contrib/gcc.295/config/freebsd.h - rebuild and install world - rebuild some threaded apps and see if they still work Thanks, John --_=XFMail.1.3.p0.FreeBSD:010124100413:25635=_ Content-Disposition: attachment; filename="freebsd.h.patch" Content-Description: freebsd.h.patch Content-Type: text/plain; charset=us-ascii; name=freebsd.h.patch; SizeOnDisk=893 Content-Transfer-Encoding: 7bit Index: freebsd.h =================================================================== RCS file: /home/ncvs/src/contrib/gcc.295/config/freebsd.h,v retrieving revision 1.30 diff -u -r1.30 freebsd.h --- freebsd.h 2000/11/07 21:49:08 1.30 +++ freebsd.h 2001/01/24 17:05:35 @@ -71,17 +71,14 @@ #define CPP_SPEC FBSD_CPP_SPEC /* Provide a LIB_SPEC appropriate for FreeBSD. Just select the appropriate - libc, depending on whether we're doing profiling. + libc, depending on whether we're doing profiling. Add the appropriate + libc_r if supporting threads. (like the default, except no -lg, and no -p). */ #undef LIB_SPEC #define LIB_SPEC "\ %{!shared: \ - %{!pg: \ - %{!pthread:-lc} \ - %{pthread:-lc_r}} \ - %{pg: \ - %{!pthread:-lc_p} \ - %{pthread:-lc_r_p}} \ + %{!pg: %{pthread:-lc_r} -lc} \ + %{pg: %{pthread:-lc_r_p} -lc_p} \ }" --_=XFMail.1.3.p0.FreeBSD:010124100413:25635=_-- End of MIME message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message