diff --git a/recipes/openssl/recipe.toml b/recipes/openssl/recipe.toml
index 5b59968af6da3bb15104ae26a76a66ef7fab5535..9220b1ac2e45b8fa2fbcb83ac0c428bee95bd0c0 100644
--- a/recipes/openssl/recipe.toml
+++ b/recipes/openssl/recipe.toml
@@ -13,6 +13,7 @@ COOKBOOK_CONFIGURE_FLAGS=(
     "redox-${ARCH}"
     --prefix="/"
 )
+export CC="${TARGET}-gcc"
 cookbook_configure
 rm -rfv "${COOKBOOK_STAGE}/"{share,ssl}
 """