1
0

005-gcc_debug_options.patch 452 B

1234567891011121314151617
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -348,11 +348,11 @@ fi
  4. if test "x$debug" = xtrue; then
  5. CPPFLAGS="-DDEBUG $CPPFLAGS"
  6. - CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
  7. - CFLAGS="-g $CFLAGS"
  8. + CFLAGS=$(echo "$CFLAGS" | sed 's/-g[0-9]*//')
  9. + CFLAGS="-g3 $CFLAGS"
  10. else
  11. CPPFLAGS="-DNDEBUG $CPPFLAGS"
  12. - CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
  13. + CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g[0-9]*//')
  14. CFLAGS="-O3 -funroll-loops $CFLAGS"
  15. fi