xref: /OK3568_Linux_fs/buildroot/package/sdl_sound/0002-remove-werror.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDo not add -Werror when --enable-debug is used
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunUsing -Werror causes some problems due to warnings in the SDL_sound
4*4882a593Smuzhiyuncode, so let's disable it.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunWe patch configure directly, because:
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun 1/ configure.in doesn't autoreconf properly out of the box.
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun 2/ the length of the configure or configure.in patch would be exactly
11*4882a593Smuzhiyun    the same (one line), or maybe more for the configure.in patch if
12*4882a593Smuzhiyun    we want the package to autoreconf properly
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun 3/ the patch will never go upstream, because upstream is dead.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunIndex: b/configure
19*4882a593Smuzhiyun===================================================================
20*4882a593Smuzhiyun--- a/configure
21*4882a593Smuzhiyun+++ b/configure
22*4882a593Smuzhiyun@@ -19561,7 +19561,6 @@
23*4882a593Smuzhiyun   else
24*4882a593Smuzhiyun     CFLAGS="-O0"
25*4882a593Smuzhiyun   fi
26*4882a593Smuzhiyun-  CFLAGS="$CFLAGS -Werror"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun cat >>confdefs.h <<\_ACEOF
29*4882a593Smuzhiyun #define DEBUG 1
30