From 3b7da5bc0345872efcf011c9c614cc27f82b9998 Mon Sep 17 00:00:00 2001 From: John Ellson Date: Tue, 19 Sep 2017 17:22:21 -0400 Subject: [PATCH] don't change CFLAGS when --enable-debug is not set as it breaks rpm builkds --- configure.ac | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 4fd116bfd..08215deb8 100644 --- a/configure.ac +++ b/configure.ac @@ -417,17 +417,14 @@ if test "x$enable_debug" = "xyes"; then changequote({,}) CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-g//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-g//g'` changequote([,]) dnl add -O0 only if GCC or ICC is used if test "$GCC" = "yes" || test "$ICC" = "yes"; then CFLAGS="$CFLAGS -g -O0 -Wall" CXXFLAGS="$CXXFLAGS -g -O0 -Wall" fi -else - changequote({,}) - CFLAGS=`echo "$CFLAGS" | $SED -e 's/-g//g'` - CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-g//g'` - changequote([,]) fi dnl ----------------------------------- -- 2.40.0