I don't like editing generated makefiles so trying to build just by passing arguments to configure, like so.
configure CFLAGS=-DHAVE_LIBSDL_MIXER 'LDFLAGS=-Zomf -Zhigh-mem -Zmap' 'LIBS=-lSDL_mixer'
Doesn't make a difference if I use -Zhigh-mem and/or -Zmap.
This results in this when running make,
...
gcc -DHAVE_LIBSDL_MIXER -Ih:/tmp/SDL/h -Ih:/tmp/SDL/h/SDL -Zomf -Zhigh-mem -Zmap -o sdlroids.exe hyperoid.o roidsupp.o sdlsound.o sdl.o petopt.o getargs.o rand.o -lm -lSDL_mixer -Lh:/tmp/SDL/lib -Zomf -lsdl12
...
Error! E2028: _ifloor is an undefined reference
Error! E2028: _SDL_GetPixel is an undefined reference
Error! E2028: _iceil is an undefined reference
Error! E2028: _MoveTo is an undefined reference
Error! E2028: _LineTo is an undefined reference
Error! E2028: _drawline is an undefined reference
These symbols are all in sdl.o and in common are all inline in sdl.c. Weird, especially that without the CFLAGS entry the build succeeds, though without sound.