summaryrefslogtreecommitdiffstats
path: root/package/mongoose
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2013-05-02 22:59:23 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2013-05-02 22:59:23 +0200
commita859f06eedc2fb2214a805374ace10cc05996bff (patch)
treed150f65cfb0dc6b6263727dc003fb2d562930293 /package/mongoose
parentaabc7475e6f8f85344fe13d3a603a69cb8d1099e (diff)
downloadbuildroot-novena-a859f06eedc2fb2214a805374ace10cc05996bff.tar.gz
buildroot-novena-a859f06eedc2fb2214a805374ace10cc05996bff.zip
mongoose: add optional openssl support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/mongoose')
-rw-r--r--package/mongoose/mongoose.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/mongoose/mongoose.mk b/package/mongoose/mongoose.mk
index 4f7df17f3..ac03bb629 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) \