Skip to content

Commit

Permalink
Fix installation for latest 1.9.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Roelofs committed Dec 27, 2010
1 parent 7c38748 commit 4986b7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extconf.rb
Expand Up @@ -26,9 +26,10 @@

if RUBY_PLATFORM =~ /darwin10/
other_opts = "--disable-dependency-tracking"
env = "ARCHFLAGS='-arch #{arch}'"
env = "ARCHFLAGS='-arch #{arch}' CPPFLAGS='-arch #{arch}'"
elsif RUBY_PLATFORM =~ /darwin9/
env = "ARCHFLAGS='-arch #{`uname -p`.chomp}'"
arch = `uname -p`.chomp
env = "ARCHFLAGS='-arch #{arch}' CPPFLAGS='-arch #{arch}'"
end

system "#{env} sh configure --with-ruby=#{with_ruby} --prefix=#{prefix_dir} #{other_opts}"

0 comments on commit 4986b7a

Please sign in to comment.