Issue #5465 has been updated by vo.x (Vit Ondruch).


Can this be applied, please? We are using this patch in Fedora and RHEL to fix build issues on s390x. Thank you.
----------------------------------------
Bug #5465: Ruby 1.9.3 fails to compile with tcl/tk on s390x
https://bugs.ruby-lang.org/issues/5465#change-32961

Author: bkabrda (Bohuslav Kabrda)
Status: Assigned
Priority: Normal
Assignee: nagai (Hidetoshi Nagai)
Category: ext
Target version: 
ruby -v: ruby 1.9.3dev (2011-09-13 revision 33263) [s390x-linux] 


When compiling Ruby 1.9.3 on s390x without specifying --libdir for configure, tcl/tk extension fails to build: Fail to find [tclConfig.sh, tkConfig.sh].
This is caused by erroneous function maybe_64bit? in ext/tk/extconf.rb, which doesn't recognize s390x as 64 bit architecture.

Proposed fix is in attached file.


-- 
http://bugs.ruby-lang.org/