Makefile.mk: fix -g option in debug mode [ci skip]

Add it to `CFLAGS` (was: `LDFLAGS`).

Closes #10747
This commit is contained in:
Viktor Szakats 2023-03-13 00:16:30 +00:00
parent 2f17a9b654
commit a285b22f8f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -103,8 +103,8 @@ endif
### Optional features
ifneq ($(findstring -debug,$(CFG)),)
CFLAGS += -g
CPPFLAGS += -DDEBUGBUILD
LDFLAGS += -g
else
CPPFLAGS += -DNDEBUG
endif