]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Makefile.mk: fix -g option in debug mode [ci skip]
authorViktor Szakats <commit@vsz.me>
Mon, 13 Mar 2023 00:16:30 +0000 (00:16 +0000)
committerViktor Szakats <commit@vsz.me>
Mon, 13 Mar 2023 00:16:30 +0000 (00:16 +0000)
Add it to `CFLAGS` (was: `LDFLAGS`).

Closes #10747

lib/Makefile.mk

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