]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiSucks.pm
lei sucks: preserve utsname.machine, add "x86" where appropriate
[public-inbox.git] / lib / PublicInbox / LeiSucks.pm
index d364a856d2415a59a47cb62ab5e8efe523a2fb8f..2ce64d629167294e61256a8f9f02ec66e81bd877 100644 (file)
@@ -18,7 +18,8 @@ sub lei_sucks {
        $lei->start_pager if -t $lei->{1};
        my ($os, undef, $rel, undef, $mac)= POSIX::uname();
        if ($mac eq 'x86_64' && $Config{ptrsize} == 4) {
-               $mac = $Config{cppsymbols} =~ /\b__ILP32__=1\b/ ? 'x32' : 'i386'
+               $mac .= $Config{cppsymbols} =~ /\b__ILP32__=1\b/ ?
+                       ',u=x32' : ',u=x86';
        }
        eval { require PublicInbox };
        my $pi_ver = eval('$PublicInbox::VERSION') // '(???)';