From 953a44b3fd61302e6b86d549109a718a001c9b3c Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Sun, 17 Oct 2021 14:30:33 +0200 Subject: Fix heap corruption bug due to bad initialization --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 50e0828..4465daf 100755 --- a/Makefile +++ b/Makefile @@ -15,12 +15,12 @@ BIN := $(BUILD_DIR)/$(TARGET) # Compiler and linker configuration. CC := cc -CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" -static +CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" CFLAGS += $(INC_FLAGS) LDFLAGS := LDLIBS := -RELEASE_CFLAGS := -DNDEBUG -O2 -DEBUG_CFLAGS := -DDEBUG -O2 -g +RELEASE_CFLAGS := -DNDEBUG -O2 -static +DEBUG_CFLAGS := -DDEBUG -O0 -g -fsanitize=address .PHONY: build tests run clean -- cgit v1.2.1