From owner-freebsd-hackers Fri Feb 8 1:21:27 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from alcatraz.iptelecom.net.ua (alcatraz.iptelecom.net.ua [212.9.224.15]) by hub.freebsd.org (Postfix) with ESMTP id 34A0D37B404; Fri, 8 Feb 2002 01:20:58 -0800 (PST) Received: from ipcard.iptcom.net (ipcard.iptcom.net [212.9.224.5]) by alcatraz.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id LAA69047; Fri, 8 Feb 2002 11:20:38 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from vega.vega.com (h8.234.dialup.iptcom.net [212.9.234.8]) by ipcard.iptcom.net (8.9.3/8.9.3) with ESMTP id LAA51966; Fri, 8 Feb 2002 11:20:36 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vega.vega.com (8.11.6/8.11.3) with ESMTP id g189K4d67837; Fri, 8 Feb 2002 11:20:04 +0200 (EET) (envelope-from sobomax@FreeBSD.org) Message-ID: <3C639855.DA710095@FreeBSD.org> Date: Fri, 08 Feb 2002 11:20:21 +0200 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,uk,ru MIME-Version: 1.0 To: Stephen Montgomery-Smith Cc: "M. Warner Losh" , jdp@FreeBSD.org, deischen@FreeBSD.org, jasone@FreeBSD.org, hackers@FreeBSD.org, jlemon@FreeBSD.org Subject: Re: Linking libc before libc_r into application causes weirdproblems References: <1013147180.73417.2.camel@notebook> <20020207.234939.69060047.imp@village.org> <3C63773A.8DBF36F6@math.missouri.edu> Content-Type: text/plain; charset=x-user-defined 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 Stephen Montgomery-Smith wrote: > > "M. Warner Losh" wrote: > > > > Confirmed. test.c appears to work properly when compiled: > > > > cc -o test test.c -pthread > > ./test > > > > Generally speaking, if you want to add -lc_r, you are doing things > > incorrectly. I've done way to much building... In FreeBSD 3.x you > > did need to do -lc_r, but that was changed to -pthread in 4.0. > > > > Warner > > > > According to the man page for gcc, you are supposed to write > > cc -o test test.c -pthread -D_THREAD_SAFE > > or am I misunderstanding something? In 5.0-CURRENT -pthread was replaced by -lc_r. -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message