From owner-freebsd-current@FreeBSD.ORG Sat Jun 2 09:51:20 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 77CD016A469 for ; Sat, 2 Jun 2007 09:51:20 +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 30EA513C45A for ; Sat, 2 Jun 2007 09:51:20 +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 1HuQHq-000PTa-Lp for freebsd-current@freebsd.org; Sat, 02 Jun 2007 12:52:42 +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 1HuQHn-0008T6-6b for freebsd-current@freebsd.org; Sat, 02 Jun 2007 12:52:39 +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 l529owHq001159 for ; Sat, 2 Jun 2007 12:50:58 +0300 (EEST) (envelope-from vkushnir@bigmir.net) Date: Sat, 2 Jun 2007 12:50:58 +0300 (EEST) From: Vladimir Kushnir X-X-Sender: vkushnir@kushnir1.kiev.ua To: freebsd-current@freebsd.org Message-ID: <20070602121928.G90169@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 09:51:20 -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) >From old gcc specs: *lib: %{!shared: %{!pg: %{pthread:-lpthread} -lc} %{pg: %{pthread:-lpthread_p} -lc_p} } Now: *lib: %{!shared: %{!pg: %{pthread:-lpthread} -lc} %{pg: %{pthread:-lpthread_p} -lc_p} } %{shared: %{pthread:-lpthread} -lc} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Is this behaviour intended? Regards, Vladimir