[MacRuby] #1382: GCC 4.2 not installed with Xcode 4.2
MacRuby
ruby-noreply at macosforge.org
Tue Oct 18 17:11:54 PDT 2011
#1382: GCC 4.2 not installed with Xcode 4.2
------------------------------------+---------------------------------------
Reporter: mrada@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
------------------------------------+---------------------------------------
Comment(by watson1978@…):
I think this issue is fixed by following patch.
{{{
diff --git a/rakelib/builder/templates.rb b/rakelib/builder/templates.rb
index 9fbf27e..7b30953 100644
--- a/rakelib/builder/templates.rb
+++ b/rakelib/builder/templates.rb
@@ -111,12 +111,20 @@ module RbConfig
CONFIG["target_cpu"] = "i686"
CONFIG["target_vendor"] = "apple"
CONFIG["target_os"] = "darwin9.0"
- CONFIG["CC"] = "#{CC}"
+ if File.exist? "#{CC}"
+ CONFIG["CC"] = "#{CC}"
+ else
+ CONFIG["CC"] = "/usr/bin/gcc"
+ end
CONFIG["CFLAGS"] = "$(ARCH_FLAG) -fexceptions -fno-common -pipe
$(cflags)"
CONFIG["LDFLAGS"] = "$(ARCH_FLAG)"
CONFIG["CPPFLAGS"] = "$(cppflags)"
CONFIG["OBJEXT"] = "o"
- CONFIG["CXX"] = "#{CXX}"
+ if File.exist? "#{CXX}"
+ CONFIG["CXX"] = "#{CXX}"
+ else
+ CONFIG["CXX"] = "/usr/bin/g++"
+ end
CONFIG["CXXFLAGS"] = "$(ARCH_FLAG)"
CONFIG["CPP"] = "/usr/bin/gcc -E"
CONFIG["GREP"] = "/usr/bin/grep"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1382#comment:2>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list