--- /dev/null
+diff -dur ruby-1.8.1.orig/ext/tcltklib/extconf.rb ruby-1.8.1/ext/tcltklib/extconf.rb
+--- ruby-1.8.1.orig/ext/tcltklib/extconf.rb 2004-01-06 11:31:21.000000000 +0100
++++ ruby-1.8.1/ext/tcltklib/extconf.rb 2004-01-06 11:33:02.222170661 +0100
+@@ -18,7 +18,7 @@
+ stubs = enable_config("tcltk_stubs") || with_config("tcltk_stubs")
+
+ def find_tcl(tcllib, stubs)
+- paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"]
++ paths = ["/usr/local/lib64", "/usr/pkg/lib64", "/usr/lib64"]
+ func = stubs ? "Tcl_InitStubs" : "Tcl_FindExecutable"
+ if tcllib
+ find_library(tcllib, func, *paths)
+@@ -33,7 +33,7 @@
+ end
+
+ def find_tk(tklib, stubs)
+- paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"]
++ paths = ["/usr/local/lib64", "/usr/pkg/lib64", "/usr/lib64"]
+ func = stubs ? "Tk_InitStubs" : "Tk_Init"
+ if tklib
+ find_library(tklib, func, *paths)
+@@ -49,7 +49,7 @@
+
+ if have_header("tcl.h") && have_header("tk.h") &&
+ (/mswin32|mingw|cygwin|bccwin32/ =~ RUBY_PLATFORM || find_library("X11", "XOpenDisplay",
+- "/usr/X11/lib", "/usr/lib/X11", "/usr/X11R6/lib", "/usr/openwin/lib")) &&
++ "/usr/X11/lib64", "/usr/lib64/X11", "/usr/X11R6/lib64", "/usr/openwin/lib64")) &&
+ find_tcl(tcllib, stubs) &&
+ find_tk(tklib, stubs)
+ $CPPFLAGS += ' -DUSE_TCL_STUBS -DUSE_TK_STUBS' if stubs