diff --git a/lib/libui.rb b/lib/libui.rb index a819530..9e5e167 100644 --- a/lib/libui.rb +++ b/lib/libui.rb @@ -9,8 +9,9 @@ class << self attr_accessor :ffi_lib end + host_cpu = RbConfig::CONFIG['host_cpu'].gsub(/i[36]86/, 'x86') lib_name = [ - "libui.#{RbConfig::CONFIG['host_cpu']}.#{RbConfig::CONFIG['SOEXT']}", + "libui.#{host_cpu}.#{RbConfig::CONFIG['SOEXT']}", "libui.#{RbConfig::CONFIG['SOEXT']}" ]