New comment by mgorny on void-packages repository https://github.com/void-linux/void-packages/pull/28732#issuecomment-787740855 Comment: Wouldn't it be simple to use https://git.causal.agency/libretls/ ? These are libtls sources modified to build and link against OpenSSL, without the need to redo all the work yourself.