Skip to content
Browse files

Fixed build to use the same arch flags as host ruby

Signed-off-by: Aaron Patterson <aaron.patterson@gmail.com>
  • Loading branch information...
1 parent 313c922 commit 834430269e810184873b75f5c5db9dcd355bc84e @zenspider zenspider committed with Sep 7, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 ext/racc/cparse/extconf.rb
View
4 ext/racc/cparse/extconf.rb
@@ -1,6 +1,8 @@
# $Id$
-ENV["ARCHFLAGS"] = "-arch #{`uname -p` =~ /powerpc/ ? 'ppc' : 'i386'}"
+require 'rbconfig'
+
+ENV["ARCHFLAGS"] = Config::CONFIG["CFLAGS"].scan(/-arch \S+/).join(" ")
require 'mkmf'

0 comments on commit 8344302

Please sign in to comment.
Something went wrong with that request. Please try again.