You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
403 B

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