From b05d0d82c6cb9b7f3a1f4a18359b639256d12e6b Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Thu, 8 Feb 2024 00:43:57 -0800
Subject: [PATCH] Use -Og for fortified debug builds (rather than -O1)

---
 src/build/Common.gmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/build/Common.gmake b/src/build/Common.gmake
index 1dbd7e92bf..dfe8dfc73b 100644
--- a/src/build/Common.gmake
+++ b/src/build/Common.gmake
@@ -150,7 +150,7 @@ ifdef DEBUG
   LDFLAGS	+=	-fprofile-arcs -ftest-coverage
  endif
  ifdef FORTIFY
-  CFLAGS += -O1
+  CFLAGS += -Og
  endif
  ifdef SANITIZE
   CFLAGS += -fsanitize=undefined,address -fno-omit-frame-pointer
-- 
GitLab