BasicObject
Check arch flags TODO: detect mismatched arch types when libcurl mac ports is mixed with native mac ruby or vice versa
archs = $CFLAGS.scan(/-archs(.*?)s/).first # get the first arch flag if archs and archs.size >= 1
# need to reduce the number of archs... # guess the first one is correct... at least the first one is probably the ruby installed arch... # this could lead to compiled binaries that crash at runtime... $CFLAGS.gsub!(/-arch\s(.*?)\s/,' ') $CFLAGS << " -arch #{archs.first}" puts "Selected arch: #{archs.first}"
end
# File ext/extconf.rb, line 38 def define(s) $defs.push( format("-D HAVE_%s", s.to_s.upcase) ) end
Generated with the Darkfish Rdoc Generator 2.