Ticket #19097: patch-Rakefile.diff
File patch-Rakefile.diff, 947 bytes (added by max@…, 16 years ago) |
---|
-
Rakefile
old new 30 30 NO_WARN_BUILD = !do_option('allow_build_warnings', false) 31 31 ENABLE_STATIC_LIBRARY = do_option('enable_static_library', 'no') { 'yes' } 32 32 ENABLE_DEBUG_LOGGING = do_option('enable_debug_logging', true) { |x| x == 'true' } 33 33 C_COMPILER = 34 if cc = ENV['CC'] 35 $stderr.puts "getting C compiller form CC (#{cc})" 36 cc 37 else 38 do_option('c_compiler', 'gcc') 39 end 34 40 # TODO: we should find a way to document these options in rake's --help 35 41 36 42 # Everything below this comment should *not* be modified. … … 416 422 CONFIG["target_cpu"] = "i686" 417 423 CONFIG["target_vendor"] = "apple" 418 424 CONFIG["target_os"] = "darwin9.0" 419 CONFIG["CC"] = " gcc"425 CONFIG["CC"] = "#{C_COMPILER}" 420 426 CONFIG["CFLAGS"] = "-fno-common -pipe $(cflags)" 421 427 CONFIG["LDFLAGS"] = "" 422 428 CONFIG["CPPFLAGS"] = "$(cppflags)"