Date: Wed, 24 Jan 2001 10:04:13 -0800 (PST) From: John Polstra <jdp@polstra.com> To: current@freebsd.org Subject: Please test this patch to restore "cc -pthread" Message-ID: <XFMail.010124100413.jdp@polstra.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010124100413.jdp>