From owner-freebsd-gnome@FreeBSD.ORG Tue Mar 4 17:27:12 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E668106566C for ; Tue, 4 Mar 2008 17:27:12 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id F32338FC15 for ; Tue, 4 Mar 2008 17:27:10 +0000 (UTC) (envelope-from marcus@freebsd.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost [127.0.0.1]) by av-tac-rtp.cisco.com (8.11.7p3+Sun/8.11.7) with ESMTP id m24HR8O16248; Tue, 4 Mar 2008 12:27:08 -0500 (EST) Received: from [64.102.221.60] (dhcp-64-102-221-60.cisco.com [64.102.221.60]) by rooster.cisco.com (8.11.7p3+Sun/8.11.7) with ESMTP id m24HRgu28654; Tue, 4 Mar 2008 12:27:46 -0500 (EST) Message-ID: <47CD866C.8020909@freebsd.org> Date: Tue, 04 Mar 2008 12:27:08 -0500 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Alexander Leidinger References: <20080301181608.5d393e02.ejcerejo@optonline.net> <1204424514.1262.36.camel@shumai.marcuscom.com> <20080303001237.28a45ba9.jylefort@brutele.be> <200803040842.47946.roy@marples.name> <20080304104855.8dk4kbnbac4g4kc4@webmail.leidinger.net> In-Reply-To: <20080304104855.8dk4kbnbac4g4kc4@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-gnome@freebsd.org Subject: Re: Evolution crawls on FreeBSD X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Mar 2008 17:27:12 -0000 Alexander Leidinger wrote: > Quoting Roy Marles (from Tue, 4 Mar 2008 08:42:47 > +0000): > >> On Sunday 02 March 2008 23:12:37 Jean-Yves Lefort wrote: >>> Indeed, a casual inspection of libexec/rtdl-elf/rtld.c shows that the >>> SO_NEEDED lists (Obj_Entry.needed) are walked recursively. Removing >>> the useless entries might therefore have a dramatic impact on >>> performance. >> >> One thing that may help here is allowing the use of cutsom LDFLAGS - >> namely -Wl,--as-needed. This removes SO_NEEDED references when the >> library >> really isn't needed. For a more indepth discussion on the benefits of >> this, > > This sounds really interesting! We would have to check which compiler > versions understand this flag. And it is a nin-intrusive change to the > autotools chain. And making ports honor LDFLAGS (like they do with > CFLAGS) is a good ideas IMO. > >> read this article [1]. I had a quick look at ports, but it doesn't >> seem to >> honor LDFLAGS in any port. Sadly most of the world needs to be >> compiled with >> this LDFLAG for it to really work, so I didn't look much futher. >> FreeBSD base >> system compiles fine with it though :) > > Oh, if the gnome maintained ports would honor LDFLAGS, it would already > be a big deal (and probably solve the issue with evolution). All GNOME ports honor LDFLAGS. We pass custom LDFLAGS via CONFIGURE_ENV to every port (i.e. to add -L${LOCALBASE}/lib). This would be trivial to test. As for the linker patch, I see the same slowish startup on 7.X and 8.X, so I do not think it will help. That said, if you are using the FBSD linker in G/FBSD, and you're not seeing this problem, there must be something else that's keep Evo in the linker for so long. Thus far, I haven't heard any default Gentoo option that may account for this. Perhaps you have some other libtool patches or other custom patches not in any version of FBSD...? Joe > > Thanks for info, > Alexander. > -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome