# HG changeset patch # User Tony Theodore # Date 1286050738 -39600 # Node ID b6d98b5e72f628896fac709ddf5afe6c688c4344 # Parent 59a787bcec54bc65e107408b8c42238d046beb1a bugfixes for sdl_sound build and test program diff -r 59a787bcec54 -r b6d98b5e72f6 src/sdl_sound-test.c --- a/src/sdl_sound-test.c Sun Oct 03 07:11:11 2010 +1100 +++ b/src/sdl_sound-test.c Sun Oct 03 07:18:58 2010 +1100 @@ -44,4 +44,6 @@ printf("Format: %s\n", sample->decoder->description); printf("Decoded %d bytes of data.\n", sample->buffer_size); Sound_FreeSample(sample); + + return 0; } diff -r 59a787bcec54 -r b6d98b5e72f6 src/sdl_sound.mk --- a/src/sdl_sound.mk Sun Oct 03 07:11:11 2010 +1100 +++ b/src/sdl_sound.mk Sun Oct 03 07:18:58 2010 +1100 @@ -38,6 +38,15 @@ --disable-smpegtest \ --with-smpeg-prefix='$(PREFIX)/$(TARGET)' \ LIBMIKMOD_CONFIG='$(PREFIX)/$(TARGET)/bin/libmikmod-config' \ - LIBS='-lvorbis -logg' + LIBS='-lvorbis -logg' \ + CFLAGS='-fno-inline' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -std=c99 -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_sound.exe' \ + `'$(TARGET)-pkg-config' sdl --cflags --libs` \ + -lSDL_sound \ + `'$(TARGET)-pkg-config' vorbisfile --libs` \ + -lspeex -lmikmod endef