From 67bccab3bf39be2738d372272fc816328df19cc3 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sat, 29 Nov 2025 06:22:17 -0800 Subject: [PATCH] Pass no-shared if openssl1 statically linked --- recipes/libs/openssl1/recipe.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/libs/openssl1/recipe.toml b/recipes/libs/openssl1/recipe.toml index ea2cb08f..5442e10c 100644 --- a/recipes/libs/openssl1/recipe.toml +++ b/recipes/libs/openssl1/recipe.toml @@ -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}"