summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2010-10-02 20:18:58 (GMT)
committerTony Theodore <tonyt@logyst.com>2010-10-02 20:18:58 (GMT)
commit1890e67af42c1a1ce3ef14b8c46041c380bc8870 (patch)
treeed93f0acd0c397f26321b08e2b1ab368120fa25b
parentd904f8e1c63faa75b7f5d576a385fc4c7134b5cc (diff)
downloadmxe-1890e67af42c1a1ce3ef14b8c46041c380bc8870.zip
mxe-1890e67af42c1a1ce3ef14b8c46041c380bc8870.tar.gz
mxe-1890e67af42c1a1ce3ef14b8c46041c380bc8870.tar.bz2
bugfixes for sdl_sound build and test program
-rw-r--r--src/sdl_sound-test.c2
-rw-r--r--src/sdl_sound.mk11
2 files changed, 12 insertions, 1 deletions
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