Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 20:27:44 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        ports@freebsd.org
Cc:        eischen@vigrid.com, jkh@freebsd.org
Subject:   Re: HEADS UP: libc/libc_r changes require rebuild of threaded apps 
Message-ID:  <200101250427.f0P4RiK29656@vashon.polstra.com>
In-Reply-To: <Pine.SUN.3.91.1010124130841.12976A-100000@pcnet1.pcnet.com>
References:  <Pine.SUN.3.91.1010124130841.12976A-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.SUN.3.91.1010124130841.12976A-100000@pcnet1.pcnet.com>,
Daniel Eischen  <eischen@vigrid.com> wrote:
> On Wed, 24 Jan 2001, Jordan Hubbard wrote:
> > Hmmmm.  And does the -pthread argument do anything anymore?  If not,
> > why not have it default to simply linking in libc_r for POLA's sake
> > and ease of transition?  If it does do something different now,
> > perhaps you could explain what that is for all of us who are also
> > confused. :)
[...]
> John Polstra has a simple patch that will change the semantics
> of -pthread.  This is obriens territory and I've steered clear
> of touching anything in there.  I sent him an email a few days
> ago about this, but he's away for a couple of weeks and won't
> be able to do anything about it until he gets back.  I'll
> test Johns patch, which should work just fine, and we'll let
> _him_ commit it ;-)

Which I will do with my usual cheer after the patch has been tested. ;-)
I posted it to -current, but here it is again for anybody on this
list who would like to test it.  Apply the patch and rebuild world,
then try building some threaded apps.  Let me know what happens.

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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