Browse Source

Minor tweak to linux makefile

Joseph Henry 7 years ago
parent
commit
f302fac423
1 changed files with 6 additions and 2 deletions
  1. 6 2
      make-linux.mk

+ 6 - 2
make-linux.mk

@@ -46,12 +46,16 @@ endif
 # Trying to use dynamically linked libhttp-parser causes tons of compatibility problems.
 ONE_OBJS+=ext/http-parser/http_parser.o
 
-ifeq ($(ZT_TRACE),1)
-	override DEFS+=-DZT_TRACE
+# Build with address sanitization library for advanced debugging (clang)
+ifeq ($(ZT_SANITIZE),1)
+	DEFS+=-fsanitize=address -DASAN_OPTIONS=symbolize=1
 endif
 ifeq ($(ZT_DEBUG_TRACE),1)
 	DEFS+=-DZT_DEBUG_TRACE
 endif
+ifeq ($(ZT_TRACE),1)
+	DEFS+=-DZT_TRACE
+endif
 
 ifeq ($(ZT_RULES_ENGINE_DEBUGGING),1)
 	override DEFS+=-DZT_RULES_ENGINE_DEBUGGING