feat: add -g flag to DEBUG_CFLAGS in Makefile for debugging symbols

Add the -g compiler flag to DEBUG_CFLAGS in the Makefile to enable
generation of debugging symbols during debug builds, allowing better
debugging with tools like GDB.
This commit is contained in:
Bob Nystrom
2015-01-12 15:32:21 +00:00
+1 -1
View File
@@ -2,7 +2,7 @@ AR = ar rcu
# Compiler flags.
CFLAGS = -std=c99 -Wall -Werror
# TODO: Add -Wextra.
DEBUG_CFLAGS = -O0 -DDEBUG
DEBUG_CFLAGS = -O0 -DDEBUG -g
RELEASE_CFLAGS = -Os
# Files.