Install this version:
emerge -a =dev-libs/wolfssl-5.9.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/wolfssl-5.9.1
Or alternatively:
emerge --autounmask-write -a =dev-libs/wolfssl-5.9.1
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Lightweight SSL/TLS library for embedded and general-purpose systems"
HOMEPAGE="https://www.wolfssl.com/ https://github.com/wolfSSL/wolfssl"
SRC_URI="https://github.com/wolfSSL/wolfssl/archive/refs/tags/v${PV}-stable.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${PV}-stable"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~x86"
IUSE="
+asm
debug
examples
openssl
quic
static-libs
test
"
RESTRICT="!test? ( test )"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
"
src_prepare() {
default
# GitHub release tarball may need autotools regeneration.
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable asm)
$(use_enable debug)
$(use_enable examples)
$(use_enable openssl opensslextra)
$(use_enable quic)
$(use_enable static-libs static)
--enable-shared
--enable-tls13
--enable-dtls
)
econf "${myeconfargs[@]}"
}
src_test() {
emake check
}
src_install() {
default
if ! use static-libs; then
find "${ED}" -name '*.la' -delete || die
fi
dodoc README.md
}
Manage flags for this package:
euse -i <flag> -p dev-libs/wolfssl |
euse -E <flag> -p dev-libs/wolfssl |
euse -D <flag> -p dev-libs/wolfssl
virtual/pkgconfig
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | wolfssl-5.9.1.tar.gz | 26716365 bytes | https://github.com/wolfSSL/wolfssl/archive/refs/tags/v5.9.1-stable.tar.gz |