summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2013-05-02 20:59:23 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-05-02 20:59:23 (GMT)
commita859f06eedc2fb2214a805374ace10cc05996bff (patch)
treed150f65cfb0dc6b6263727dc003fb2d562930293
parentaabc7475e6f8f85344fe13d3a603a69cb8d1099e (diff)
downloadbuildroot-a859f06eedc2fb2214a805374ace10cc05996bff.tar.gz
buildroot-a859f06eedc2fb2214a805374ace10cc05996bff.tar.bz2
mongoose: add optional openssl support
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-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 4f7df17..ac03bb6 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) \