mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
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>
(cherry picked from commit 444b62cbcc)
This commit is contained in:
committed by
Hannu Nyman
parent
83b7ce07d5
commit
a79db5d81c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user