Created attachment 221704 [details] v1 Expose libtls dependency as TLS option. When using LibreSSL use its own libtls but when using OpenSSL use libtls from libretls. --- libressl +++ openssl @@ -1,7 +1,7 @@ =>> Checking shared library dependencies 0x0000000000000001 NEEDED Shared library: [libc.so.7] - 0x0000000000000001 NEEDED Shared library: [libcrypto.so.46] + 0x0000000000000001 NEEDED Shared library: [libcrypto.so.111] 0x0000000000000001 NEEDED Shared library: [libm.so.5] - 0x0000000000000001 NEEDED Shared library: [libssl.so.48] + 0x0000000000000001 NEEDED Shared library: [libssl.so.111] 0x0000000000000001 NEEDED Shared library: [libthr.so.3] 0x0000000000000001 NEEDED Shared library: [libtls.so.20] On FreeBSD < 12 we have to continue using ugly workaround because security/libretls fails to build.
A commit references this bug: Author: naddy Date: Mon Jan 18 20:02:16 UTC 2021 New revision: 561963 URL: https://svnweb.freebsd.org/changeset/ports/561963 Log: net/openntpd: switch to libretls on FreeBSD 12+ When using LibreSSL use its own libtls but when using OpenSSL use libtls from libretls. Reworked from PR: 252802 Submitted by: jbeich Changes: head/net/openntpd/Makefile
Thanks. I do not want to make constraint support optional, so I committed a simplified version without the OPTION.