This flag causes the make process to fail

This commit is contained in:
(@ivanvc) 2009-09-25 17:13:47 -05:00 committed by Max Howell
parent 2a61971dfa
commit 350f4bd2c5

View file

@ -21,6 +21,10 @@ class Spidermonkey <Formula
inreplace "src/config/Darwin.mk", 'CC = cc', "CC = #{ENV['CC']}" inreplace "src/config/Darwin.mk", 'CC = cc', "CC = #{ENV['CC']}"
inreplace "src/config/Darwin.mk", 'CCC = g++', "CCC = #{ENV['CXX']}" inreplace "src/config/Darwin.mk", 'CCC = g++', "CCC = #{ENV['CXX']}"
# aparently this flag causes the build to fail for ivanvc on 10.5 with a
# penryn (core 2 duo) CPU. So lets be cautious here and remove it.
ENV['CFLAGS'] = ENV['CFLAGS'].gsub(/-msse[^\s]+/, '')
Dir.chdir "src" do Dir.chdir "src" do
system "make JS_DIST=#{HOMEBREW_PREFIX} JS_THREADSAFE=1 DEFINES=-DJS_C_STRINGS_ARE_UTF8 -f Makefile.ref" system "make JS_DIST=#{HOMEBREW_PREFIX} JS_THREADSAFE=1 DEFINES=-DJS_C_STRINGS_ARE_UTF8 -f Makefile.ref"
system "make JS_DIST=#{prefix} -f Makefile.ref export" system "make JS_DIST=#{prefix} -f Makefile.ref export"