redox/recipes/wip/libs/tls/openssl3/recipe.toml
Mark Harris ec1aa3b77d
Fix openssl3 for platforms without shared libs
We need to also disable loading of dynamic shared objects (modules)
with no-dso.
2026-02-23 22:51:47 -08:00

37 lines
823 B
TOML

[source]
tar = "https://github.com/openssl/openssl/releases/download/openssl-3.5.3/openssl-3.5.3.tar.gz"
patches = [ "redox.patch" ]
[build]
template = "custom"
dependencies = [
"zlib",
"zstd"
]
script = """
DYNAMIC_INIT
ARCH="${TARGET%%-*}"
OS=$(echo "${TARGET}" | cut -d - -f3)
export ARFLAGS=cr
COOKBOOK_CONFIGURE="${COOKBOOK_SOURCE}/Configure"
COOKBOOK_CONFIGURE_FLAGS=(
no-tests
no-unit-test
zlib
enable-zstd
"${OS}-${ARCH}"
--prefix="/usr"
--openssldir="/etc/ssl"
)
if [ "${COOKBOOK_DYNAMIC}" = "1" ]; then
COOKBOOK_CONFIGURE_FLAGS+=(shared)
else
COOKBOOK_CONFIGURE_FLAGS+=(no-shared no-dso)
fi
"${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}"
"${COOKBOOK_MAKE}" -j1 # bug in make/ar
"${COOKBOOK_MAKE}" install_sw install_ssldirs DESTDIR="${COOKBOOK_STAGE}"
"""