only set mbedtls debug if we are building in debug mode

This commit is contained in:
Brad Parker 2018-08-04 13:24:30 -04:00
parent 7b147a40ae
commit c71b4ccca3

View File

@ -379,7 +379,10 @@ HAVE_GTKPLUS = 0
ifeq ($(HAVE_SSL), 1) ifeq ($(HAVE_SSL), 1)
DEFINES += -DHAVE_SSL DEFINES += -DHAVE_SSL
DEFINES += -DMBEDTLS_SSL_DEBUG_ALL
ifeq ($(DEBUG), 1)
DEFINES += -DMBEDTLS_SSL_DEBUG_ALL
endif
# MinGW requires this for some reason, even though the include paths are relative to the source # MinGW requires this for some reason, even though the include paths are relative to the source
INCLUDE_DIRS += -Ideps/mbedtls INCLUDE_DIRS += -Ideps/mbedtls