mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
Add ZT_DEBUG to DEFS when specified
This commit is contained in:
parent
da898d5a19
commit
1d15d4e8d3
@ -45,17 +45,14 @@ endif
|
|||||||
# Trying to use dynamically linked libhttp-parser causes tons of compatibility problems.
|
# Trying to use dynamically linked libhttp-parser causes tons of compatibility problems.
|
||||||
ONE_OBJS+=ext/http-parser/http_parser.o
|
ONE_OBJS+=ext/http-parser/http_parser.o
|
||||||
|
|
||||||
ifeq ($(ZT_DEBUG_TRACE),1)
|
|
||||||
DEFS+=-DZT_DEBUG_TRACE
|
|
||||||
endif
|
|
||||||
ifeq ($(ZT_TRACE),1)
|
|
||||||
DEFS+=-DZT_TRACE
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(ZT_RULES_ENGINE_DEBUGGING),1)
|
ifeq ($(ZT_RULES_ENGINE_DEBUGGING),1)
|
||||||
override DEFS+=-DZT_RULES_ENGINE_DEBUGGING
|
override DEFS+=-DZT_RULES_ENGINE_DEBUGGING
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ZT_DEBUG_TRACE),1)
|
||||||
|
DEFS+=-DZT_DEBUG_TRACE
|
||||||
|
endif
|
||||||
|
|
||||||
# Build with address sanitization library for advanced debugging (clang)
|
# Build with address sanitization library for advanced debugging (clang)
|
||||||
ifeq ($(ZT_SANITIZE),1)
|
ifeq ($(ZT_SANITIZE),1)
|
||||||
override DEFS+=-fsanitize=address -DASAN_OPTIONS=symbolize=1
|
override DEFS+=-fsanitize=address -DASAN_OPTIONS=symbolize=1
|
||||||
@ -98,6 +95,10 @@ ifeq ($(ZT_TRACE),1)
|
|||||||
override DEFS+=-DZT_TRACE
|
override DEFS+=-DZT_TRACE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ZT_DEBUG),1)
|
||||||
|
override DEFS+=-DZT_DEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(ZT_USE_TEST_TAP),1)
|
ifeq ($(ZT_USE_TEST_TAP),1)
|
||||||
override DEFS+=-DZT_USE_TEST_TAP
|
override DEFS+=-DZT_USE_TEST_TAP
|
||||||
endif
|
endif
|
||||||
|
@ -92,6 +92,10 @@ ifeq ($(ZT_TRACE),1)
|
|||||||
DEFS+=-DZT_TRACE
|
DEFS+=-DZT_TRACE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ZT_DEBUG),1)
|
||||||
|
DEFS+=-DZT_DEBUG
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(ZT_VAULT_SUPPORT),1)
|
ifeq ($(ZT_VAULT_SUPPORT),1)
|
||||||
DEFS+=-DZT_VAULT_SUPPORT=1
|
DEFS+=-DZT_VAULT_SUPPORT=1
|
||||||
LIBS+=-lcurl
|
LIBS+=-lcurl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user