Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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

[-- Attachment #2 --]
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} \
   }"
 
 
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010124100413.jdp>