From 7de277248ce4239d47942c69dc220a72deb15eb2 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 15 Sep 2011 23:36:19 -0700 Subject: [PATCH] Include --with-gcc config flag for gcc-4.2 on Lion, per https://github.com/ruby/ruby/commit/9151ed22b360ba3d2bde3b51969a682f9a4a3096 --- bin/ruby-build | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/ruby-build b/bin/ruby-build index 8d6d4062..07378c5f 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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 }