Move sanitizers to debug build

v1
Tony Olagbaiye 7 years ago
parent c925d1e690
commit 6a7fdcca4d

@ -1,8 +1,10 @@
CC=clang CC=clang
CXX=g++ CXX=g++
RM=rm -f RM=rm -f
SANCFLAGS=-fsanitize=address -fsanitize=leak ifdef DEBUG
SANLDFLAGS=-static-libasan -static-liblsan SANCFLAGS=-fsanitize=address -fsanitize=leak
SANLDFLAGS=-static-libasan -static-liblsan
endif
CFLAGS=$(SANCFLAGS) -fno-omit-frame-pointer -fPIC -std=gnu99 -g -Wall -Wextra -Werror-implicit-function-declaration -Wno-missing-field-initializers -Ilibwebsockets/include -Ijson-c CFLAGS=$(SANCFLAGS) -fno-omit-frame-pointer -fPIC -std=gnu99 -g -Wall -Wextra -Werror-implicit-function-declaration -Wno-missing-field-initializers -Ilibwebsockets/include -Ijson-c
LDFLAGS=-shared -g $(SANCFLAGS) $(SANLDFLAGS) LDFLAGS=-shared -g $(SANCFLAGS) $(SANLDFLAGS)
LDLIBS=-lgnutls LDLIBS=-lgnutls

Loading…
Cancel
Save