package/upmpcli: bump to version 0.13.1
[buildroot-gz.git] / package / flac / 0001-configure-don-t-try-to-unset-g-from-CFLAGS.patch
blob3aff5a8c957e1ba8294db793b121aab3c3fc6ea0
1 The sed expression is wrong, any flags with '-g' in any position gets
2 zapped, for example:
4 -mfloat-gprs=double (for powerpc e500) -> -mfloatprs=double.
6 Which gives build errors and is perfectly valid in real use scenarios to
7 switch from e500v1 (single precision) code to e500v2 (double precision) code.
9 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11 diff -Nura flac-1.3.1.orig/configure flac-1.3.1/configure
12 --- flac-1.3.1.orig/configure 2014-11-27 20:43:29.921303105 -0300
13 +++ flac-1.3.1/configure 2014-11-27 20:45:33.460250179 -0300
14 @@ -19870,11 +19870,10 @@
16 if test "x$debug" = xtrue; then
17 CPPFLAGS="-DDEBUG $CPPFLAGS"
18 - CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
19 - CFLAGS="-g $CFLAGS"
20 + CFLAGS=$(echo "-g $CFLAGS")
21 else
22 CPPFLAGS="-DNDEBUG $CPPFLAGS"
23 - CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
24 + CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//')
25 CFLAGS="-O3 -funroll-loops $CFLAGS"