Add Make flag to disable optimization

This commit is contained in:
Eelco Dolstra 2014-09-17 17:07:05 +02:00
parent 6e5b02bee4
commit 5a05cf4063
2 changed files with 10 additions and 3 deletions

View File

@ -22,8 +22,15 @@ makefiles = \
doc/manual/local.mk \
tests/local.mk
GLOBAL_CXXFLAGS += -std=c++0x
GLOBAL_CXXFLAGS += -std=c++0x -g -Wall
include Makefile.config
OPTIMIZE = 1
ifeq ($(OPTIMIZE), 1)
GLOBAL_CFLAGS += -O3
GLOBAL_CXXFLAGS += -O3
endif
include mk/lib.mk

View File

@ -54,8 +54,8 @@ if test "$sys_name" = sunos; then
fi
CFLAGS=${CFLAGS:--g -O3 -Wall}
CXXFLAGS=${CXXFLAGS:--g -O3 -Wall}
CFLAGS=
CXXFLAGS=
AC_PROG_CC
AC_PROG_CXX