From a527aea46574737a05d325ba592eeb90711613e0 Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Tue, 21 May 2019 08:44:24 -0400 Subject: [PATCH] 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". --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index d1ec9de5..f2110385 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)