-
Notifications
You must be signed in to change notification settings - Fork 1
/
2.3.3
19 lines (16 loc) · 1.01 KB
/
2.3.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Old config.guess isn't arm64-aware. Pull a new one in from automake.
build_package_freshen_automake_config() {
{
mv tool/config.guess tool/config.guess.dist
mv tool/config.sub tool/config.sub.dist
} >&4 2>&1
}
# Suppress warnings we aren't going to address so they don't flood build output"
export RUBY_CFLAGS="-Wno-implicit-function-declaration -Wno-compound-token-split-by-macro"
# M1-compatible OpenSSL 1.0 from https://github.com/basecamp/homebrew-dev
brew install basecamp/dev/openssl@1.0
openssl_prefix_path="$(brew --prefix basecamp/dev/openssl@1.0)"
package_option ruby configure --with-openssl-dir="$openssl_prefix_path"
export PKG_CONFIG_PATH="$openssl_prefix_path/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
package_option ruby configure --with-out-ext=tk --disable-install-doc
install_package "ruby-2.3.3" "https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.bz2#882e6146ed26c6e78c02342835f5d46b86de95f0dc4e16543294bc656594cc5b" freshen_automake_config ldflags_dirs standard verify_openssl