Building an optimised SDL library

How does one build an optimised SDL library? I’d like to say add the
following to the make:

-funroll-loops -fexpensive-optimizations -march=i686 -mmmx

Do I pass configure something extra? Do I mod some file? I’m building
with MinGW under MSYS. Any suggestions anyone has would be greatly
appreciated.

Regards,
Grembo.

grembo:

How does one build an optimised SDL library? I’d like to say add the
following to the make:

-funroll-loops -fexpensive-optimizations -march=i686 -mmmx

Do I pass configure something extra? Do I mod some file? I’m building
with MinGW under MSYS. Any suggestions anyone has would be greatly
appreciated.

Do

export CFLAGS="-funroll-loops -fexpensive-optimizations -march=i686 -mmmx"

before configure (or maybe just before make?).–
Daniel Schlyder
http://bitblaze.com/

Daniel Schlyder wrote:

grembo:

How does one build an optimised SDL library? I’d like to say add the
following to the make:

-funroll-loops -fexpensive-optimizations -march=i686 -mmmx

Do I pass configure something extra? Do I mod some file? I’m building
with MinGW under MSYS. Any suggestions anyone has would be greatly
appreciated.

Do

export CFLAGS="-funroll-loops -fexpensive-optimizations -march=i686 -mmmx"

before configure (or maybe just before make?).


Daniel Schlyder
http://bitblaze.com/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thank you sir :slight_smile:

grembo wrote:

Daniel Schlyder wrote:

grembo:

How does one build an optimised SDL library? I’d like to say add the
following to the make:

-funroll-loops -fexpensive-optimizations -march=i686 -mmmx

Do I pass configure something extra? Do I mod some file? I’m building
with MinGW under MSYS. Any suggestions anyone has would be greatly
appreciated.

Do

export CFLAGS="-funroll-loops -fexpensive-optimizations -march=i686
-mmmx"

before configure (or maybe just before make?).


Daniel Schlyder
http://bitblaze.com/


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Thank you sir :slight_smile:


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

you can also do this from Msys:

CFLAGS="-funroll-loops -fexpensive-optimizations -march=i686 -mmmx"
./configure --prefix=“whatever”

and it’ll include the specified CFLAGS into the build (try ./configure
–help for more variables you can set)

brian