package/monit: fix openssl static build

Fix the following openssl static build failure raised since bump to
version 5.33.0 in commit 8cedb39764:

configure: error: Could not find SSL library, please use --with-ssl-lib-dir option or disabled the SSL support using --without-ssl

Fixes:
 - http://autobuild.buildroot.org/results/b2fe4ecd1d84c3cf7d0eb8f606b20bc6638d6d65

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2023-10-15 23:01:25 +02:00 committed by Thomas Petazzoni
parent 278f4f43a3
commit 4c05f8d143

View File

@ -26,8 +26,9 @@ MONIT_CONF_OPTS += \
--with-largefiles
ifeq ($(BR2_PACKAGE_OPENSSL),y)
MONIT_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
MONIT_CONF_OPTS += --with-ssl --with-ssl-dir=$(STAGING_DIR)/usr
MONIT_DEPENDENCIES += openssl
MONIT_DEPENDENCIES += host-pkgconf openssl
else
MONIT_CONF_OPTS += --without-ssl
endif