[SDL] SDL with gcc-fat
Torsten Giebl
wizard at syntheticsw.com
Fri Feb 23 12:14:48 PST 2007
Hello !
> Probably it's building the Intel version with something like __POWERPC__
> defined, or vice versa...this will cause byteswapping to happen on data it
> shouldn't, so things like standard files will get outrageous values where
> they shouldn't.
YOU ARE A GENIUS. That was exactly the problem.
Not a define, but SDL checks for what endianess the
system has and then puts it into SDL_config.h
As i call GCC_PPC first and then GCC_X86, it got the idea that
the actual system uses LITTLE ENDIAN. configure always has to fail,
what should it detect as i want to compile for a LITTLE- and BIG
ENDIAN system.
I will work around this by putting a #ifndef BUILD_WITH_GCCFAT
into SDL_config. When BUILD_WITH_GCCFAT is not defined it will
use the normal cases, when i define BUILD_WITH_GCC i will call the
build with the correct SDL_BYTEORDER define manually.
This should not break existing stuff.
I will add a way to add special COMPILE_PPC, LINK_PPC,
COMPILE_X86, LINK_X86 flags to my gcc-fat.
http://www.syntheticsw.com/~wizard/tmp/gcc-fat-v0.1.0.tar.gz
CU
More information about the SDL
mailing list