Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
configure: add --enable-ccdebug (use -O0 for compiler - clang or gcc)
  • Loading branch information
perexg committed Jun 20, 2016
1 parent 60e0227 commit 4e508db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -28,7 +28,12 @@ LANGUAGES ?= bg cs da de en_US en_GB es et fa fi fr he hr hu it lv nl pl pt ru s
# Common compiler flags
#

CFLAGS += -g -O2
CFLAGS += -g
ifeq ($(CONFIG_CCDEBUG),yes)
CFLAGS += -O0
else
CFLAGS += -O2
endif
ifeq ($(CONFIG_PIE),yes)
CFLAGS += -fPIE
else
Expand Down
1 change: 1 addition & 0 deletions configure
Expand Up @@ -18,6 +18,7 @@ test -z "$PKG_CONFIG" && PKG_CONFIG=pkg-config

OPTIONS=(
"pie:yes"
"ccdebug:no"
"cwc:yes"
"capmt:yes"
"constcw:yes"
Expand Down

0 comments on commit 4e508db

Please sign in to comment.