aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2021-06-06 23:46:38 -0700
committerTrumeet <yuuta@yuuta.moe>2021-06-06 23:46:38 -0700
commitb55296041b70c46c2949d8a176916e9ce8a4af7a (patch)
tree52af04bf61dd5aae77e7b3bf447bc1c9bd3cc8b8 /Makefile
parentaf3d8d2ffb895293dcb75b3736c6184a2f21c502 (diff)
downloadextmc-b55296041b70c46c2949d8a176916e9ce8a4af7a.tar
extmc-b55296041b70c46c2949d8a176916e9ce8a4af7a.tar.gz
extmc-b55296041b70c46c2949d8a176916e9ce8a4af7a.tar.bz2
extmc-b55296041b70c46c2949d8a176916e9ce8a4af7a.zip
fix: use address sanitizer to fix two memory issues
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4bc407f..2511216 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ OBJ=main.o thpool.o mcin.o plugins.o rcon_host.o rcon.o net.o plugin_registry.o
BIN=extmc
-debug: CFLAGS += -DCONTROL_SOCKET_PATH="\"./extmc.ctl\"" -g3 -O0 -rdynamic
+debug: CFLAGS += -fsanitize=address -DCONTROL_SOCKET_PATH="\"./extmc.ctl\"" -g3 -O0 -rdynamic
debug: $(BIN)
release: CFLAGS += -DDISABLE_DEBUG