From b83405a629764ed3aa2269158a31a02dd4db4c30 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 9 Nov 2024 17:21:11 +0100 Subject: [PATCH] Add an environment variable to always build openssl/libssl * This is useful when one wants to avoid depending e.g. on which openssl version is installed in Homebrew, notably for https://github.com/ruby/setup-ruby/issues/668 --- bin/ruby-build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ruby-build b/bin/ruby-build index 8ab9b7aeb7..e297879926 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -1122,6 +1122,8 @@ normalize_semver() { # If a compatible Homebrew-installed OpenSSL version is found during # checking, Ruby will be linked to it and the check will return false. needs_openssl() { + [ "$RUBY_BUILD_BUILD_OPENSSL" = "true" ] && return 0 + [[ "$RUBY_CONFIGURE_OPTS ${RUBY_CONFIGURE_OPTS_ARRAY[*]}" != *--with-openssl-dir=* ]] || return 1 local system_version