Don't bake in mbedtls when networking is not builtin

This commit is contained in:
twinaphex 2018-09-26 00:16:37 +02:00
parent 6ebf4b860b
commit e4df100377
2 changed files with 4 additions and 0 deletions

View File

@ -399,6 +399,7 @@ ifneq ($(C89_BUILD), 1)
HAVE_GTKPLUS = 0
ifeq ($(HAVE_SSL), 1)
ifeq ($(HAVE_NETWORKING), 1)
DEFINES += -DHAVE_SSL
ifeq ($(DEBUG), 1)
@ -485,6 +486,7 @@ OBJS_TLS = deps/mbedtls/debug.o \
OBJ += $(OBJS_TLS_CRYPTO) $(OBJS_TLS_X509) $(OBJS_TLS)
endif
endif
endif
# Miscellaneous

View File

@ -1426,6 +1426,7 @@ HTTP SERVER
SSL
============================================================ */
#if defined(HAVE_SSL)
#if defined(HAVE_NETWORKING)
#include "../deps/mbedtls/aes.c"
#include "../deps/mbedtls/aesni.c"
#include "../deps/mbedtls/arc4.c"
@ -1502,3 +1503,4 @@ SSL
#include "../libretro-common/net/net_socket_ssl.c"
#endif
#endif