flac: add patch to fix build with DEBUG=yes, this fixes #3834

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2015-01-24 20:25:18 +01:00
parent d1781f4f58
commit 9506cf652f

View File

@ -0,0 +1,16 @@
diff -Naur flac-1.3.1/configure.ac flac-1.3.1.patch/configure.ac
--- flac-1.3.1/configure.ac 2014-11-27 03:45:33.000000000 +0100
+++ flac-1.3.1.patch/configure.ac 2015-01-24 20:19:19.119178172 +0100
@@ -348,11 +348,10 @@
if test "x$debug" = xtrue; then
CPPFLAGS="-DDEBUG $CPPFLAGS"
- CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
CFLAGS="-g $CFLAGS"
else
CPPFLAGS="-DNDEBUG $CPPFLAGS"
- CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
+ CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//')
CFLAGS="-O3 -funroll-loops $CFLAGS"
fi