Add -Og for debug builds

On my system, some optimizations are on by default (NixOS), resulting in
variables being optimized out on debug builds.  It *seems to be*
something about a "_FORTIFY_SOURCE" feature?  In any case, `-Og` is
documented as "Optimize debugging experience".
This commit is contained in:
Jason Felice 2019-05-21 08:44:24 -04:00
parent 2bef1f1eb8
commit a527aea465

View File

@ -9,7 +9,7 @@ ifneq ($(gzip_man),yes)
endif
ifeq ($(debug),yes)
CPPFLAGS += -DKAK_DEBUG
CPPFLAGS += -DKAK_DEBUG -Og
suffix := .debug
else
ifeq ($(debug),no)