Anyone have the pleasure of building libSDL for i386 on an x86_64 host? I'm running into some wierd issues.
I'm running Fedora 10, and I believe I have all the required foo.i386 packages installed.
On trying to build, I can do nothing and it builds fine for x86_64. If I set CFLAGS to have -m32, it builds the objects fine, but then ld tries to link them as elf64.x86_64 objects... and fails. If I also try to set formats in LDFLAGS, such as '-F elf32.i386' (objdump tells me that's a supported format) ./configure fails telling me my compiler can't create executables.
Checking my config.log, gcc complains (to paraphrase, I don't have the log presently) file not found: elf32.i386
I don't know if something is screwey with this, as I'm not telling it where to find a file, but which format to use when linking. But I've checked the Fedora repos (and RPMFusion) for any packages that contain a file named elf32.i386, and none occur.
I'm really scratching my head on this one.
Any ideas?
(building from
http://www.libsdl.org/release/SDL-1.2.13.tar.gz)