Skip to content

Commit acb2131

Browse files
committed
Use gcc-4.2 on Lion for 1.8.7
1 parent ced2352 commit acb2131

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

bin/ruby-build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ after_install_package() {
7474
local stub=1
7575
}
7676

77+
use_gcc42_on_lion() {
78+
if [ "$(uname -s)" = "Darwin" ]; then
79+
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7)" = 0 ]; then
80+
export CC=/usr/bin/gcc-4.2
81+
fi
82+
fi
83+
}
84+
7785
usage() {
7886
echo "usage: ruby-build DEFINITION-PATH INSTALLATION-PREFIX"
7987
exit 1

versions/1.8.7-p352

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
use_gcc42_on_lion
12
install_package "ruby-1.8.7-p352" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.tar.gz"
23
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby

versions/ree-1.8.7-2011.03

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ build_package_ree_installer() {
88
} >$LOG_PATH 2>&1
99
}
1010

11+
use_gcc42_on_lion
1112
install_package "ruby-enterprise-1.8.7-2011.03" "http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz" ree_installer

0 commit comments

Comments
 (0)