Commit 7d538a3f authored by Yi Gu's avatar Yi Gu
Browse files

Treat the openssl 0.9.8(r|x) bundled with OS X as broken library. So the...

Treat the openssl 0.9.8(r|x) bundled with OS X as broken library. So the ruby-build will download and build the latest one.
parent 1b170ee8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -608,7 +608,7 @@ verify_gcc() {

has_broken_mac_openssl() {
  [ "$(uname -s)" = "Darwin" ] &&
  [ "$(openssl version 2>/dev/null || true)" = "OpenSSL 0.9.8r 8 Feb 2011" ] &&
  [[ "$(openssl version 2>/dev/null || true)" =~ 'OpenSSL 0\.9\.8' ]] &&
  [[ "$RUBY_CONFIGURE_OPTS" != *--with-openssl-dir=* ]]
}