1 [PATCH] configure: 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 Patch configure instead of configure.ac as subversion currently doesn't
9 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 Index: subversion-1.7.18/configure
15 ===================================================================
16 --- subversion-1.7.18.orig/configure
17 +++ subversion-1.7.18/configure
18 @@ -19798,8 +19798,8 @@
19 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG"
20 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG"
21 elif test "$enable_debugging" = "no" ; then
22 - CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' | $SED -e 's/-g//g'`"
23 - CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' | $SED -e 's/-g//g'`"
24 + CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9]* //g'`"
25 + CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9]* //g'`"
26 CFLAGS="$CFLAGS -DNDEBUG"
27 CXXFLAGS="$CXXFLAGS -DNDEBUG"
28 # elif test "$enable_debugging" = "maybe" ; then