[flac-dev] [PATCH] configure.ac: don't try to unset -g from CFLAGS
Gustavo Zacarias
gustavo at zacarias.com.ar
Thu Nov 27 15:41:44 PST 2014
The sed expression is wrong, any flags with '-g' in any position gets
zapped, for example:
-mfloat-gprs=double (for powerpc e500) -> -mfloatprs=double.
Which gives build errors and is perfectly valid in real use scenarios to
switch from e500v1 (single precision) code to e500v2 (double precision) code.
Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
---
configure.ac | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 3d647ed..94d7c9e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -348,11 +348,10 @@ fi
if test "x$debug" = xtrue; then
CPPFLAGS="-DDEBUG $CPPFLAGS"
- CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
- CFLAGS="-g $CFLAGS"
+ CFLAGS=$(echo "-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
--
2.0.4
More information about the flac-dev
mailing list