From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 19:45:09 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C4D516A420 for ; Fri, 10 Feb 2006 19:45:09 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E9D643D46 for ; Fri, 10 Feb 2006 19:45:09 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id k1AJj3KX073837; Fri, 10 Feb 2006 11:45:03 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id k1AJj3xh073800; Fri, 10 Feb 2006 11:45:03 -0800 (PST) (envelope-from sgk) Date: Fri, 10 Feb 2006 11:45:03 -0800 From: Steve Kargl To: Dan Nelson Message-ID: <20060210194503.GA10370@troutmask.apl.washington.edu> References: <20060210181715.GA21782@troutmask.apl.washington.edu> <20060210193907.GE2090@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060210193907.GE2090@dan.emsphone.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: [jakub@redhat.com:Linking against libpthread via -pthread? 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: Fri, 10 Feb 2006 19:45:09 -0000 On Fri, Feb 10, 2006 at 01:39:08PM -0600, Dan Nelson wrote: > In the last episode (Feb 10), Steve Kargl said: > > Some background information: I routinely build GCC mainline on > > i386-*-freebsd and amd64-*-freebsd. GCC mainline is introducing > > OpenMP support. When libgomp.so.1 is built, the compiler is given > > the -pthread option throughout the construction of libgomp.so.1. > > However, a "ldd libgomp.so.1" shows no dependence on libpthread.so.2 > > There was a discussion about this back when the default switched from > libc_r to libpthread, and I think the consensus was that shared > libraries should never record dependencies against threads libs, which > means you have to add -pthread to the link line when building the final > executable. This avoids problems where an executable links to three > shlibs, one library is linked to libc_r, one's linked to libkse, and a > third is linked to libpthread. > Does this still apply with the symbol versioning that was committed some weeks (months?) ago? Additionally, I thought libc_r is deprecated in FreeBSD-current (has it been moved to the attic?). -- Steve