From a859f06eedc2fb2214a805374ace10cc05996bff Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 2 May 2013 22:59:23 +0200 Subject: [PATCH] mongoose: add optional openssl support Signed-off-by: Peter Korsgaard --- package/mongoose/mongoose.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk index 4f7df17f36..ac03bb6290 100644 --- a/package/mongoose/mongoose.mk +++ b/package/mongoose/mongoose.mk @@ -10,7 +10,15 @@ MONGOOSE_SITE = https://mongoose.googlecode.com/files MONGOOSE_LICENSE = MIT MONGOOSE_LICENSE_FILES = COPYING -MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -DNO_SSL +MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) + +ifeq ($(BR2_PACKAGE_OPENSSL),y) +MONGOOSE_DEPENDENCIES += openssl +# directly linked +MONGOOSE_CFLAGS += -DNO_SSL_DL -lssl -lcrypto -lz +else +MONGOOSE_CFLAGS += -DNO_SSL +endif define MONGOOSE_BUILD_CMDS $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) \ -- 2.30.2