about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-17 23:19:59 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-17 23:19:59 -0800
commit1d9a4fa1d55c2ec0792bdcfe035f153ce4287a6e (patch)
tree93bf86f97fbce503acfa2d5b99f857d4fad6861d /src
parent235e1038245533fdf5274b3fe1a193042028e947 (diff)
downloadteliva-1d9a4fa1d55c2ec0792bdcfe035f153ce4287a6e.tar.gz
ctrl-u: clear prose
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index d9ef9b1..1d6cd13 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,7 +8,7 @@
 PLAT= none
 
 CC= gcc
-CFLAGS= -g -O2 -std=c99 -Wall -Wshadow $(MYCFLAGS)
+CFLAGS= -g -O2 -std=c99 -Wall -Wshadow $(MYCFLAGS) -fsanitize=address
 AR= ar rc
 RANLIB= ranlib
 RM= rm -f
@@ -50,7 +50,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
 	$(RANLIB) $@
 
 $(LUA_T): $(LUA_O) $(LUA_A) lcurses/curses.o luasocket/socket.a luasocket/mime.a luasec/ssl.a
-	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) lcurses/curses.o luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS)
+	$(CC) -o $@ -fsanitize=address -static-libasan $(MYLDFLAGS) $(LUA_O) $(LUA_A) lcurses/curses.o luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS)
 
 clean:
 	$(RM) lcurses/curses.o