From owner-freebsd-hackers Fri Feb 8 6:37:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from math.missouri.edu (math.missouri.edu [128.206.49.180]) by hub.freebsd.org (Postfix) with ESMTP id 3261B37B417; Fri, 8 Feb 2002 06:37:18 -0800 (PST) Received: from math.missouri.edu (cauchy.math.missouri.edu [128.206.49.166]) by math.missouri.edu (8.11.6/8.11.6) with ESMTP id g18EbGu59001; Fri, 8 Feb 2002 08:37:16 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <3C63E297.F90D5E82@math.missouri.edu> Date: Fri, 08 Feb 2002 08:37:11 -0600 From: Stephen Montgomery-Smith Organization: University of Missouri X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: "M. Warner Losh" Cc: sobomax@FreeBSD.ORG, jdp@FreeBSD.ORG, deischen@FreeBSD.ORG, jasone@FreeBSD.ORG, hackers@FreeBSD.ORG, jlemon@FreeBSD.ORG Subject: Re: Linking libc before libc_r into application causesweirdproblems References: <1013147180.73417.2.camel@notebook> <20020207.234939.69060047.imp@village.org> <3C63773A.8DBF36F6@math.missouri.edu> <20020208.003223.29577858.imp@village.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "M. Warner Losh" wrote: > > In message: <3C63773A.8DBF36F6@math.missouri.edu> > Stephen Montgomery-Smith writes: > : cc -o test test.c -pthread -D_THREAD_SAFE > : > : or am I misunderstanding something? > > Ah, yes. -D_THREAD_SAFE is technically needed. > I am curious - what are the possible consequences if you forget to include -D_THREAD_SAFE? I have done many compilations having forgotten to include this flag, with no obvious problems. Did I just get lucky? -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message