diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk index 87f56d7894..5faeafb374 100644 --- a/package/mongoose/mongoose.mk +++ b/package/mongoose/mongoose.mk @@ -16,7 +16,14 @@ MONGOOSE_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGOOSE_DEPENDENCIES += openssl -MONGOOSE_CFLAGS += -DMG_ENABLE_SSL +MONGOOSE_CFLAGS += \ + -DMG_ENABLE_SSL \ + -DMG_SSL_IF=MG_SSL_IF_OPENSSL +else ifeq ($(BR2_PACKAGE_MBEDTLS),y) +MONGOOSE_DEPENDENCIES += mbedtls +MONGOOSE_CFLAGS += \ + -DMG_ENABLE_SSL \ + -DMG_SSL_IF=MG_SSL_IF_MBEDTLS endif define MONGOOSE_BUILD_CMDS