From owner-freebsd-current@FreeBSD.ORG Sat Jun 2 16:36:09 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3669116A46C for ; Sat, 2 Jun 2007 16:36:09 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 2401B13C447 for ; Sat, 2 Jun 2007 16:36:09 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id B86231A4D93; Sat, 2 Jun 2007 09:37:22 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 70E065129D; Sat, 2 Jun 2007 12:36:08 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 5D31CC1D6; Sat, 2 Jun 2007 12:36:08 -0400 (EDT) Date: Sat, 2 Jun 2007 12:36:08 -0400 From: Kris Kennaway To: Vladimir Kushnir Message-ID: <20070602163608.GA3531@rot13.obsecurity.org> References: <20070602012546.F1367@kushnir1.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070602012546.F1367@kushnir1.kiev.ua> User-Agent: Mutt/1.4.2.2i Cc: freebsd-current@freebsd.org Subject: Re: "-pthread" == "-lpthread" for shared libs in -CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 16:36:09 -0000 On Sat, Jun 02, 2007 at 01:29:47AM +0300, Vladimir Kushnir wrote: > Hello, guys. > > In post-gcc42 -CURRENT: > > cc -shared -fPIC -o libmts.so mtest.c -lm -pthread > ldd ./libmts.so > ./libmts.so: > libm.so.5 => /lib/libm.so.5 (0x800b01000) > libthr.so.3 => /lib/libthr.so.3 (0x800c1b000) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > libc.so.7 => /lib/libc.so.7 (0x800631000) > > Is this behaviour bug or feature? Feature. Look at libpthread to see why. Kris