about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSucks.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-30 09:24:31 +0000
committerEric Wong <e@80x24.org>2021-04-30 19:59:42 +0000
commit2021754b745eba39ef83ff11d504c0257f0f8c11 (patch)
treedfa81db20dcf0e6c5e84ea730d25658fd6f816f4 /lib/PublicInbox/LeiSucks.pm
parent6c7b884068318011af6f8382a023befa815643c3 (diff)
downloadpublic-inbox-2021754b745eba39ef83ff11d504c0257f0f8c11.tar.gz
It's helpful for us to distinguish x86 kernels from x86_64
kernels when using an x86 userspace.  OSes are dropping i386
support and only support i486 and newer, so "x86" is a more
appropriate description for that platform than "i386".
Diffstat (limited to 'lib/PublicInbox/LeiSucks.pm')
-rw-r--r--lib/PublicInbox/LeiSucks.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiSucks.pm b/lib/PublicInbox/LeiSucks.pm
index d364a856..2ce64d62 100644
--- a/lib/PublicInbox/LeiSucks.pm
+++ b/lib/PublicInbox/LeiSucks.pm
@@ -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') // '(???)';