diff --git a/Makefile.common b/Makefile.common index f3085b9abf..d32048cbb4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -379,7 +379,10 @@ HAVE_GTKPLUS = 0 ifeq ($(HAVE_SSL), 1) 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 INCLUDE_DIRS += -Ideps/mbedtls