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