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
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} \ }"