0002-configure-remove-predefined-O2-optimization-flag.patch 861 B

123456789101112131415161718192021
  1. configure: remove predefined -O2 optimization flag
  2. CFLAGS_OPT variable forces to use -O2 optimization flag denying the
  3. possibility to use different optimization flag values.
  4. Remove -O2 flag from CFLAGS_OPT.
  5. Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
  6. ---
  7. diff -urpN prboom-2.5.0.orig/configure.ac prboom-2.5.0/configure.ac
  8. --- prboom-2.5.0.orig/configure.ac 2019-06-20 14:07:45.058481879 +0200
  9. +++ prboom-2.5.0/configure.ac 2019-06-20 14:09:05.066238825 +0200
  10. @@ -48,7 +48,7 @@ else
  11. fi
  12. dnl --- cph: work out flags to pass to compiler
  13. -CFLAGS_OPT="-O2 -fomit-frame-pointer"
  14. +CFLAGS_OPT="-fomit-frame-pointer"
  15. AC_C_COMPILE_FLAGS(-Wall)
  16. dnl --- Option to enable debugging
  17. AC_ARG_ENABLE(debug,AC_HELP_STRING([--enable-debug],[turns on various debugging features, like range checking and internal heap diagnostics]),,enable_debug="no")