From a285b22f8f38f38dc3b441f096324e8ef8402959 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 13 Mar 2023 00:16:30 +0000 Subject: [PATCH] Makefile.mk: fix -g option in debug mode [ci skip] Add it to `CFLAGS` (was: `LDFLAGS`). Closes #10747 --- lib/Makefile.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile.mk b/lib/Makefile.mk index ebf88547c0..bee76116de 100644 --- a/lib/Makefile.mk +++ b/lib/Makefile.mk @@ -103,8 +103,8 @@ endif ### Optional features ifneq ($(findstring -debug,$(CFG)),) + CFLAGS += -g CPPFLAGS += -DDEBUGBUILD - LDFLAGS += -g else CPPFLAGS += -DNDEBUG endif -- 2.47.3