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.

This commit is contained in:
Yi Gu 2013-05-29 22:50:41 +09:00
parent 1b170ee85a
commit 7d538a3fdd

View file

@ -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=* ]]
}