Skip to content

Commit

Permalink
Add an environment variable to always build openssl/libssl
Browse files Browse the repository at this point in the history
* This is useful when one wants to avoid depending e.g. on which openssl version
  is installed in Homebrew, notably for ruby/setup-ruby#668
  • Loading branch information
eregon committed Nov 9, 2024
1 parent 20496b5 commit b83405a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b83405a

Please sign in to comment.