ext_tk_extconf.rb.diff   [plain text]


--- ./ext/tk/extconf.rb.old	2007-01-17 15:18:16.000000000 +0100
+++ ./ext/tk/extconf.rb	2007-01-17 15:34:52.000000000 +0100
@@ -5,6 +5,8 @@
 is_win32 = (/mswin32|mingw|cygwin|bccwin32/ =~ RUBY_PLATFORM)
 #is_macosx = (/darwin/ =~ RUBY_PLATFORM)
 
+[$CFLAGS, $LDFLAGS].each { |s| s.gsub!(/-arch\s+(ppc64|x86_64)/, '') }
+
 def find_framework(tcl_hdr, tk_hdr)
   if framework_dir = with_config("tcltk-framework")
     paths = [framework_dir]