problem when compiling sdl

Dennis Veatch dveatch at woh.rr.com
Mon Sep 26 17:59:59 UTC 2005


On Monday 26 September 2005 01:56 pm, Zbigniew Luszpinski wrote:
> > On Monday 26 September 2005 06:29 am, Edd Budulea wrote:
> > > when compile SDL module, use -o1 not -o2 or -o3, if
> > > -o2 or -o3 is used the gcc3.4.4 will give an error on
> > > an asm section that uses mmx something about
> > > GENERAL_REGISTERS not define.
> >
> > I suspect you may have another issue causing this. On my system using
> >
> >  CFLAGS="-O2 -mtune=athlon -march=athlon -mmmx -msse -msse2 -m3dnow
> > -mfpmath=sse,387"
> >
> > works just fine and I see no errors about asm or mmx in the compile log.
> > Perhaps try recompiling nasm and running lunar fix.
>
> To compile successfuly SDL I had only to remove -fforce-addr from gcc
> options. I use patched lunar.optimize with own flags and this can be right
> only for my patched, but always healthy, machine.
>
> greets :-),
> Zbigniew 'zbiggy' Luszpinski

Always good to keep an eye on optimizations. :)


More information about the Lunar mailing list