Created
December 16, 2009 16:07
-
-
Save jasonroelofs/257944 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/extconf.rb b/extconf.rb | |
index e4274eb..3f138fb 100644 | |
--- a/extconf.rb | |
+++ b/extconf.rb | |
@@ -27,6 +27,8 @@ env = "" | |
if RUBY_PLATFORM =~ /darwin10/ | |
other_opts = "--disable-dependency-tracking" | |
env = "ARCHFLAGS='-arch x86_64'" | |
+elsif RUBY_PLATFORM =~ /darwin9/ | |
+ env = "ARCHFLAGS='-arch #{`uname -p`.chomp}'" | |
end | |
system "#{env} sh configure --with-ruby=#{with_ruby} --prefix=#{prefix_dir} #{other_opts}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment