diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-02 22:59:23 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-02 22:59:23 +0200 |
commit | a859f06eedc2fb2214a805374ace10cc05996bff (patch) | |
tree | d150f65cfb0dc6b6263727dc003fb2d562930293 /package/mongoose/mongoose.mk | |
parent | aabc7475e6f8f85344fe13d3a603a69cb8d1099e (diff) | |
download | buildroot-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/mongoose.mk')
-rw-r--r-- | package/mongoose/mongoose.mk | 10 |
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) \ |