mailsend: fix ssl variant to use opensssl

As described in #28261 Not compiled with OpenSSL, the SSL variant of
the mailsend package is not actually being compiled with OpenSSL.

This is due to an upstream configure check borrowed from an ancient
version of BIND, which no longer works.

As a workaround we add `-DHAVE_OPENSSL=1` to the `TARGET_CFLAGS` when
building the SSL variant.

This results in a complaint about COPTS not being honoured correctly,
but results in `mailsend` compiled with OpenSSL (i.e. works).

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
This commit is contained in:
Daniel F. Dickinson
2026-01-25 11:05:43 -05:00
committed by George Sapkin
parent 081b7043c3
commit 444b62cbcc

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mailsend
PKG_VERSION:=1.19
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/muquit/mailsend/archive/$(PKG_VERSION)
@@ -66,6 +66,10 @@ TARGET_CFLAGS += \
-DSTDC_HEADERS \
-DTIME_WITH_SYS_TIME
ifeq ($(BUILD_VARIANT),ssl)
TARGET_CFLAGS += "-DHAVE_OPENSSL=1"
endif
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) DEFS="$(TARGET_CFLAGS)"
endef