Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created December 16, 2009 16:07
Show Gist options
  • Save jasonroelofs/257944 to your computer and use it in GitHub Desktop.
Save jasonroelofs/257944 to your computer and use it in GitHub Desktop.
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