From: Peter Korsgaard Date: Thu, 2 May 2013 20:59:23 +0000 (+0200) Subject: mongoose: add optional openssl support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a859f06eedc2fb2214a805374ace10cc05996bff;p=buildroot.git mongoose: add optional openssl support Signed-off-by: Peter Korsgaard --- 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) \