From 1890e67af42c1a1ce3ef14b8c46041c380bc8870 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sun, 3 Oct 2010 07:18:58 +1100 Subject: bugfixes for sdl_sound build and test program --- src/sdl_sound-test.c | 2 ++ src/sdl_sound.mk | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/sdl_sound-test.c b/src/sdl_sound-test.c index 46794fc..437e1e1 100644 --- a/src/sdl_sound-test.c +++ b/src/sdl_sound-test.c @@ -44,4 +44,6 @@ int main( int argc, char** argv ) printf("Format: %s\n", sample->decoder->description); printf("Decoded %d bytes of data.\n", sample->buffer_size); Sound_FreeSample(sample); + + return 0; } diff --git a/src/sdl_sound.mk b/src/sdl_sound.mk index 1747458..3c401b2 100644 --- a/src/sdl_sound.mk +++ b/src/sdl_sound.mk @@ -38,6 +38,15 @@ define $(PKG)_BUILD --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 -- cgit v0.12