Skip to content

Commit

Permalink
package/monit: fix openssl static build
Browse files Browse the repository at this point in the history
--with-ssl-dir will exclusively search for dynamic library so use
--with-ssl-static to fix the following openssl static build failure
raised since bump to version 5.33.0 in commit
8cedb39:

checking for static SSL support... disabled
checking for SSL support... enabled
checking for SSL include directory... /home/buildroot/autobuild/instance-2/output-1/host/mipsel-buildroot-linux-uclibc/sysroot/usr/include
checking for SSL library directory... /lib64

[...]

mipsel-buildroot-linux-uclibc-gcc: ERROR: unsafe header/library path used in cross-compilation: '-L/lib64'

Fixes:
 - http://autobuild.buildroot.org/results/4189decbafb5d28c11d89ddac792b4610abeaff1

Signed-off-by: Fabrice Fontaine <[email protected]>
Signed-off-by: Peter Korsgaard <[email protected]>
  • Loading branch information
ffontaine authored and jacmet committed Dec 3, 2023
1 parent cdc9b8a commit 51cf6a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/monit/monit.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ MONIT_CONF_OPTS += \

ifeq ($(BR2_PACKAGE_OPENSSL),y)
MONIT_CONF_ENV += LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
ifeq ($(BR2_STATIC_LIBS),y)
MONIT_CONF_OPTS += --with-ssl-static=$(STAGING_DIR)/usr
else
MONIT_CONF_OPTS += --with-ssl --with-ssl-dir=$(STAGING_DIR)/usr
endif
MONIT_DEPENDENCIES += host-pkgconf openssl
else
MONIT_CONF_OPTS += --without-ssl
Expand Down

0 comments on commit 51cf6a8

Please sign in to comment.