1 The sed expression is wrong, any flags with '-g' in any position gets
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//')
20 + CFLAGS=$(echo "-g $CFLAGS")
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"