Pass no-shared if openssl1 statically linked

This commit is contained in:
Wildan M 2025-11-29 06:22:17 -08:00
parent f7f57f54ae
commit 67bccab3bf
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -9,12 +9,18 @@ DYNAMIC_INIT
ARCH="${TARGET%%-*}"
COOKBOOK_CONFIGURE="${COOKBOOK_SOURCE}/Configure"
COOKBOOK_CONFIGURE_FLAGS=(
shared
threads
no-dgram
"redox-${ARCH}"
--prefix="/"
)
if [ "${COOKBOOK_DYNAMIC}" = "1" ]; then
COOKBOOK_CONFIGURE_FLAGS+=(shared)
else
COOKBOOK_CONFIGURE_FLAGS+=(no-shared)
fi
export CC="${CC_WRAPPER} ${GNU_TARGET}-gcc"
"${COOKBOOK_CONFIGURE}" "${COOKBOOK_CONFIGURE_FLAGS[@]}"
"${COOKBOOK_MAKE}" -j"${COOKBOOK_MAKE_JOBS}"