Path: | ext/extconf.rb |
Last Update: | Wed Apr 09 12:26:49 +0000 2014 |
Check arch flags TODO: detect mismatched arch types when libcurl mac ports is mixed with native mac ruby or vice versa
archs = $CFLAGS.scan(/-arch\s(.*?)\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