aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-17 14:30:33 +0200
committerBad Diode <bd@badd10de.dev>2021-10-17 14:30:33 +0200
commit953a44b3fd61302e6b86d549109a718a001c9b3c (patch)
treeb73d2d68b268bd3eb902e025d4a36a2095f3e3fd /Makefile
parentdbeab0d63b21c14e9c462c08c8f776e9428b853c (diff)
downloadbdl-953a44b3fd61302e6b86d549109a718a001c9b3c.tar.gz
bdl-953a44b3fd61302e6b86d549109a718a001c9b3c.zip
Fix heap corruption bug due to bad initialization
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 50e0828..4465daf 100755
--- a/Makefile
+++ b/Makefile
@@ -15,12 +15,12 @@ BIN := $(BUILD_DIR)/$(TARGET)
15 15
16# Compiler and linker configuration. 16# Compiler and linker configuration.
17CC := cc 17CC := cc
18CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" -static 18CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\"
19CFLAGS += $(INC_FLAGS) 19CFLAGS += $(INC_FLAGS)
20LDFLAGS := 20LDFLAGS :=
21LDLIBS := 21LDLIBS :=
22RELEASE_CFLAGS := -DNDEBUG -O2 22RELEASE_CFLAGS := -DNDEBUG -O2 -static
23DEBUG_CFLAGS := -DDEBUG -O2 -g 23DEBUG_CFLAGS := -DDEBUG -O0 -g -fsanitize=address
24 24
25.PHONY: build tests run clean 25.PHONY: build tests run clean
26 26