Commit a859f06e authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

mongoose: add optional openssl support

parent aabc7475
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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) \