mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-30 21:11:07 +02:00
Merge pull request #40 from jeremy/with-gcc-flag
set --with-gcc=gcc-4.2 on lion + xcode 4.1
This commit is contained in:
commit
c7293208bc
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ use_gcc42_on_lion() {
|
|||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7 || true)" -eq 1 ]; then
|
||||
export CC=/usr/bin/gcc-4.2
|
||||
CONFIGURE_OPTS="--with-gcc=$CC $CONFIGURE_OPTS"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue