I hear you. I've spent quite a bit of time trying to get fink to respond to my environment variables.
My question to the group is this; how come fink doesn't use the CFLAGS environment variable? I tried setting it all over the place and it just doesn't seem to pick it up.
For anyone who doesn't think this is worth the effort a properly compiled lame encodes at ~1.7x instead of ~0.5x on my iBook -- 0.5x => twice the length of the song in minutes.
Cheers, Joe
To be clear I did a configure and make install of lame via the command line and got an executable that ran three times faster! All that was really required was the following:
export CFLAGS="-O3 -fomit-frame-pointer -ffast-math -funroll-loops -fno-common"
./configure --prefix=/sw --enable-mp3x --with-gtk-prefix=/sw --enable-mp3rtp --mandir=/sw/src/root-lame-3.93.1-1/sw/share/man --libexecdir=/sw/lib
make install
Of course those need to be preceeded by sudo.
I got the configure line by just running fink and watching what rolled by.
The CFLAGS are actually written in the configure file they're just not being used.
----------------------------
From: Kevin Horton <[EMAIL PROTECTED]> Re: lame optimizations 2003-05-19 07:12
I tried SetCFLAGS, and ConfigureParams, but neither made any difference. Perhaps I also need to fiddle with one of the compiler settings for one of the dependencies.
This isn't a real big deal, as I'll just keep on using these other programs, instead of fink's lame.
Kevin
At 8:16 AM -0400 5/19/03, Alexander Hansen wrote:
>Naively, I'd have assumed that you should add the new settings to SetCFLAGS.
>Is this what you tried?
>
>On 5/19/03 7:46 AM, "Kevin Horton" <[EMAIL PROTECTED]> wrote:
>
>> I have been using fink's lame package to encode MP3s - it works
>> great, but is quite slow. Yesterday I experimented with two lame
>> programs that other people had packaged - both were quite a bit
>> faster than the fink package, using the same lame settings. I rooted
>> around in the docs that came with these programs to see why they may
>> be faster.
>>
>> LameBrain, http://www.funkatron.com/mt/, uses some specific compiler
>> optimization settings:
>>
>> -faltivec -mcpu=7450 -mdynamic-no-pic -funroll-loops -ffast-math
>> -fstrict-aliasing -O3
>>
>> The LameBrain program seems to work great on a G4 - I haven't tested
>> it on a G3. I've experimented with modding the lame-3.93.1-1.info
>> file to add these compiler optimization settings, but I obviously
>> don't know what I am doing, as the resulting binary performs exactly
>> the same as before.
>>
>> Can anyone point me to how to mod the info file to add these compiler
>> optimization settings?
>>
>> Thanks,
>>
> > Kevin Horton
> >
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users