[SM-Grimoire-Bugs] [Bug 10043] New: sdl_gfx defaults to using x86 MMX assembler on PPC (perhaps also other archs) - workaround

bugzilla-daemon at bugs.sourcemage.org bugzilla-daemon at bugs.sourcemage.org
Sat Oct 29 22:42:20 EDT 2005


http://bugs.sourcemage.org/show_bug.cgi?id=10043

           Summary: sdl_gfx defaults to using x86 MMX assembler on PPC
                    (perhaps also other archs) - workaround
           Product: Codex
           Version: stable grimoire
          Platform: PPC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: libs
        AssignedTo: sm-grimoire-bugs at lists.ibiblio.org
        ReportedBy: eekee at eekee.is-a-geek.org


Compiling SDL_gfx-2.0.10 (stable) and SDL_gfx-2.0.13 (test) fails on my PPC
machine due to x86 assembler being passed to the compiler. I have added a
configuration option to the spell governing configure's --enable-mmx option. The
CONFIGURE file needs to be created, containing this line:

config_query MMX "Enable MMX? Do *NOT* use on x86_64 or ppc platforms " n

And here is the patch for BUILD:

--- BUILD.old   2005-10-30 01:37:17.000000000 +0000
+++ BUILD       2005-10-30 01:25:07.000000000 +0000
@@ -1,4 +1,9 @@
 unset  CFLAGS
+
+if [ "$MMX" = "n" ]; then
+       OPTS="$OPTS --disable-mmx"
+fi &&
+
 ./configure  --build=$BUILD        \
              --prefix=/usr         \
              --sysconfdir=/etc     \


Ideally, the spell should probably test for MMX availability as the effectv
spell does and adjust the default accordingly, I guess.

-- 
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the SM-Grimoire-Bugs mailing list