Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2008 14:17:37 -0400
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        Jeremy Messenger <mezz7@cox.net>
Cc:        freebsd-gnome@freebsd.org, Alexander Leidinger <Alexander@leidinger.net>
Subject:   Re: Evolution crawls on FreeBSD
Message-ID:  <47D81E41.3070005@freebsd.org>
In-Reply-To: <op.t7w0x8ex9aq2h7@mezz.mezzweb.com>
References:  <20080301181608.5d393e02.ejcerejo@optonline.net> <20080304104855.8dk4kbnbac4g4kc4@webmail.leidinger.net> <47CD866C.8020909@freebsd.org> <200803041827.42384.roy@marples.name> <op.t7h9vuns9aq2h7@mezz.mezzweb.com> <op.t7w0x8ex9aq2h7@mezz.mezzweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jeremy Messenger wrote:
> On Tue, 04 Mar 2008 13:03:20 -0600, Jeremy Messenger <mezz7@cox.net> wrote:
> 
>> On Tue, 04 Mar 2008 12:27:42 -0600, Roy Marples <roy@marples.name> wrote:
>>
>>> On Tuesday 04 March 2008 17:27:08 Joe Marcus Clarke wrote:
>>>> All GNOME ports honor LDFLAGS.
>>>
>>> I'm pretty sure evolution didn't when I tested this a few months ago. 
>>> I'll retest once I get my fbsd box back up.
>>
>> You can't just add in /etc/make.conf. You have to edit in 
>> evolution/Makefile. If you want to get make.conf works, it will need 
>> to be add ${LDFLAGS} like this:
>>
>> ===================================
>> CONFIGURE_ENV=    CPPFLAGS="-I${LOCALBASE}/include" \
>>         LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}"
>> ===================================
>>
>> Then add in make.conf:
>>
>> ===================================
>> LDFLAGS=-Wl,--as-needed
>> ===================================
>>
>> I haven't test it, but it should works.
> <snip>
> 
> Tweak in LDFLAGS wasn't good enough. It doesn't change anything. marcus 
> has found a way to hack in Evolution libtool to add '-Wl,--as-needed' 
> and finally helps Evolution to start up a lot faster. You can see the 
> difference:
> 
> http://people.freebsd.org/~mezz/evolution.txt
> 
> marcus has added it in bsd.gnome.mk called ltasneededhack in MC CVS. The 
> evolution port in MC CVS is using it. It will be coming with GNOME 2.22.
> 
> Just add a note to maintainers, if you want to use ltasneededhack. You 
> have to make sure about that you test throught in your port before you 
> commit it. It has caused Evolution plugins to show up bugs and marcus 
> has to add a patch in a plugin to make sure it doesn't use 
> '-Wl,--as-needed'.

Admittedly, that was due to a circular linking dependency.  I wouldn't 
expect that to be the norm, but indescriminantly adding ltasneededhack 
would be a bad idea.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47D81E41.3070005>