Skip to content

Commit c729320

Browse files
committed
Merge pull request rbenv#40 from jeremy/with-gcc-flag
set --with-gcc=gcc-4.2 on lion + xcode 4.1
2 parents 2e84348 + 7de2772 commit c729320

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/ruby-build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ use_gcc42_on_lion() {
151151
if [ "$(uname -s)" = "Darwin" ]; then
152152
if [ "$(expr "$(sw_vers -productVersion | cut -f 2 -d .)" \>= 7 || true)" -eq 1 ]; then
153153
export CC=/usr/bin/gcc-4.2
154+
CONFIGURE_OPTS="--with-gcc=$CC $CONFIGURE_OPTS"
154155
fi
155156
fi
156157
}

0 commit comments

Comments
 (0)