forked from lix-project/lix
Add Make flag to disable optimization
This commit is contained in:
parent
6e5b02bee4
commit
5a05cf4063
9
Makefile
9
Makefile
|
@ -22,8 +22,15 @@ makefiles = \
|
||||||
doc/manual/local.mk \
|
doc/manual/local.mk \
|
||||||
tests/local.mk
|
tests/local.mk
|
||||||
|
|
||||||
GLOBAL_CXXFLAGS += -std=c++0x
|
GLOBAL_CXXFLAGS += -std=c++0x -g -Wall
|
||||||
|
|
||||||
include Makefile.config
|
include Makefile.config
|
||||||
|
|
||||||
|
OPTIMIZE = 1
|
||||||
|
|
||||||
|
ifeq ($(OPTIMIZE), 1)
|
||||||
|
GLOBAL_CFLAGS += -O3
|
||||||
|
GLOBAL_CXXFLAGS += -O3
|
||||||
|
endif
|
||||||
|
|
||||||
include mk/lib.mk
|
include mk/lib.mk
|
||||||
|
|
|
@ -54,8 +54,8 @@ if test "$sys_name" = sunos; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
CFLAGS=${CFLAGS:--g -O3 -Wall}
|
CFLAGS=
|
||||||
CXXFLAGS=${CXXFLAGS:--g -O3 -Wall}
|
CXXFLAGS=
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue