1 [PATCH] configure.ac: don't mangle CFLAGS
3 Ensure that the sed expression to strip debugging options from CFLAGS
4 doesn't mangle flags like -mfloat-gprs=double, breaking the build.
6 [Vincent: adapt to 1.9.2 and patch configure.ac instead of configure]
8 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11 diff -Nrup a/configure.ac b/configure.ac
12 --- a/configure.ac 2015-07-27 00:03:10.000000000 +0100
13 +++ b/configure.ac 2015-09-28 10:33:39.175048493 +0100
14 @@ -1110,8 +1110,8 @@ if test "$enable_debugging" = "yes" ; th
15 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
16 elif test "$enable_debugging" = "no" ; then
17 AC_MSG_NOTICE([Disabling debugging])
18 - CFLAGS=["`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"]
19 - CXXFLAGS=["`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`"]
20 + CFLAGS=["`echo $CFLAGS' ' | $SED -e 's/-g[0-9]* //g'`"]
21 + CXXFLAGS=["`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9]* //g'`"]
22 dnl Compile with NDEBUG to get rid of assertions
23 CFLAGS="$CFLAGS -DNDEBUG"
24 CXXFLAGS="$CXXFLAGS -DNDEBUG"