summaryrefslogtreecommitdiffstats
path: root/package/sdl_sound
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-02 20:09:52 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-05-02 20:09:52 +0200
commit4fe0183c5076169b4be739bcb652ebd05e35cb79 (patch)
tree344cc673eb376485cb32f3e11c2d357ccde5973d /package/sdl_sound
parent5f37843ab78d2faa5a1cf48f7dd97df29d1fcd80 (diff)
downloadbuildroot-4fe0183c5076169b4be739bcb652ebd05e35cb79.tar.gz
buildroot-4fe0183c5076169b4be739bcb652ebd05e35cb79.zip
sdl_sound: add patch to remove -Werror when --enable-debug is passed
Fixes: http://autobuild.buildroot.org/results/37d/37d0ae47902c5fa6f749e8b832f31924ad03b7af/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/sdl_sound')
-rw-r--r--package/sdl_sound/0002-remove-werror.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/sdl_sound/0002-remove-werror.patch b/package/sdl_sound/0002-remove-werror.patch
new file mode 100644
index 0000000000..c08bbdb893
--- /dev/null
+++ b/package/sdl_sound/0002-remove-werror.patch
@@ -0,0 +1,29 @@
+Do not add -Werror when --enable-debug is used
+
+Using -Werror causes some problems due to warnings in the SDL_sound
+code, so let's disable it.
+
+We patch configure directly, because:
+
+ 1/ configure.in doesn't autoreconf properly out of the box.
+
+ 2/ the length of the configure or configure.in patch would be exactly
+ the same (one line), or maybe more for the configure.in patch if
+ we want the package to autoreconf properly
+
+ 3/ the patch will never go upstream, because upstream is dead.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/configure
+===================================================================
+--- a/configure
++++ b/configure
+@@ -19561,7 +19561,6 @@
+ else
+ CFLAGS="-O0"
+ fi
+- CFLAGS="$CFLAGS -Werror"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define DEBUG 1
OpenPOWER on IntegriCloud