From owner-freebsd-current@FreeBSD.ORG Sat Jun 2 15:12:27 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 67D0A16A41F for ; Sat, 2 Jun 2007 15:12:27 +0000 (UTC) (envelope-from vkushnir@bigmir.net) Received: from ex.volia.net (ex.volia.net [82.144.192.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1EF0113C457 for ; Sat, 2 Jun 2007 15:12:26 +0000 (UTC) (envelope-from vkushnir@bigmir.net) Received: from em.volia.net ([82.144.192.9]) by ex.volia.net with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HuFe0-000BK5-FY for freebsd-current@freebsd.org; Sat, 02 Jun 2007 01:30:52 +0300 Received: from editorially-hamburger.volia.net ([77.123.41.179] helo=kushnir1.kiev.ua) by em.volia.net with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HuFdw-000BAU-VP for freebsd-current@freebsd.org; Sat, 02 Jun 2007 01:30:49 +0300 Received: from kushnir1.kiev.ua (kushnir1.kiev.ua [192.168.0.10]) by kushnir1.kiev.ua (8.14.1/8.13.8) with ESMTP id l51MTlJO029064 for ; Sat, 2 Jun 2007 01:29:47 +0300 (EEST) (envelope-from vkushnir@kushnir1.kiev.ua) Date: Sat, 2 Jun 2007 01:29:47 +0300 (EEST) From: Vladimir Kushnir To: freebsd-current@freebsd.org Message-ID: <20070602012546.F1367@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: "-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 15:12:27 -0000 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?