diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-17 14:30:33 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-17 14:30:33 +0200 |
commit | 953a44b3fd61302e6b86d549109a718a001c9b3c (patch) | |
tree | b73d2d68b268bd3eb902e025d4a36a2095f3e3fd /Makefile | |
parent | dbeab0d63b21c14e9c462c08c8f776e9428b853c (diff) | |
download | bdl-953a44b3fd61302e6b86d549109a718a001c9b3c.tar.gz bdl-953a44b3fd61302e6b86d549109a718a001c9b3c.zip |
Fix heap corruption bug due to bad initialization
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,12 +15,12 @@ BIN := $(BUILD_DIR)/$(TARGET) | |||
15 | 15 | ||
16 | # Compiler and linker configuration. | 16 | # Compiler and linker configuration. |
17 | CC := cc | 17 | CC := cc |
18 | CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" -static | 18 | CFLAGS := -Wall -Wextra -pedantic -DBIN_NAME=\"$(TARGET)\" |
19 | CFLAGS += $(INC_FLAGS) | 19 | CFLAGS += $(INC_FLAGS) |
20 | LDFLAGS := | 20 | LDFLAGS := |
21 | LDLIBS := | 21 | LDLIBS := |
22 | RELEASE_CFLAGS := -DNDEBUG -O2 | 22 | RELEASE_CFLAGS := -DNDEBUG -O2 -static |
23 | DEBUG_CFLAGS := -DDEBUG -O2 -g | 23 | DEBUG_CFLAGS := -DDEBUG -O0 -g -fsanitize=address |
24 | 24 | ||
25 | .PHONY: build tests run clean | 25 | .PHONY: build tests run clean |
26 | 26 | ||