[flac-dev] 1.21 vs 1.3 encoding speed

Erik de Castro Lopo mle+la at mega-nerd.com
Sat Jul 26 01:29:36 PDT 2014


Martijn van Beurden wrote:

> op 25-07-14 19:32, Scott Brown schreef:
> > ./configure -enable-static -disable-shared CFLAGS=" -isysroot 
> > /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6"
> > make
> 
> Well, the use of CFLAGS 'disables' the -O3 and unroll-loops 
> optimisation. I'm quite sure that's the culprit. Add -O3 to your 
> CFLAGS and it should be fixed.
> 
> See the following lines in the configure script
> 
> >         if test "x$user_cflags" = x; then
> >             CFLAGS="-O3 -funroll-loops -Wall -W -Winline"
> >         fi
> 
> Maybe we should change this 'overriding' behaviour of CFLAGS and 
> add -O3 just like most other options are added to the CFLAGS?

Wow, I didn't even know that was there.

I have now replaced the above with:

    CFLAGS="-O3 -funroll-loops -Wall -W -Winline $CFLAGS"

so CFLAGS are preserved and enforce optimisations.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list