1 diff -ur mozjs-60.1.0/build/moz.configure/init.configure mozjs-60.1.0-x32/build/moz.configure/init.configure
2 --- mozjs-60.1.0/build/moz.configure/init.configure 2018-06-19 00:23:55.000000000 +0200
3 +++ mozjs-60.1.0-x32/build/moz.configure/init.configure 2019-03-31 10:40:40.743730317 +0200
6 elif cpu in ('x86_64', 'ia64'):
8 + if os.endswith('gnux32'):
9 + canonical_cpu = 'x32'
11 elif cpu in ('s390', 's390x'):
13 --- firefox-60.7.0/js/src/jsmath.cpp.orig 2019-05-24 22:04:38.196451155 +0200
14 +++ firefox-60.7.0/js/src/jsmath.cpp 2019-05-24 22:10:43.717804289 +0200
17 // Older glibc versions don't define SYS_getrandom, so we define it here if
18 // it's not available. See bug 995069.
19 -#if defined(__x86_64__)
20 +#if defined(__x86_64__) && defined(__ILP32__)
21 +#define GETRANDOM_NR (__X32_SYSCALL_BIT + 318)
22 +#elif defined(__x86_64__)
23 #define GETRANDOM_NR 318
24 #elif defined(__i386__)
25 #define GETRANDOM_NR 355
26 diff -ur mozjs-60.1.0/python/mozbuild/mozbuild/configure/constants.py mozjs-60.1.0-x32/python/mozbuild/mozbuild/configure/constants.py
27 --- mozjs-60.1.0/python/mozbuild/mozbuild/configure/constants.py 2018-06-19 00:24:03.000000000 +0200
28 +++ mozjs-60.1.0-x32/python/mozbuild/mozbuild/configure/constants.py 2019-03-31 10:39:21.792681467 +0200
36 CPU = EnumString.subclass(*CPU_bitness.keys())
39 # The order of those checks matter
40 CPU_preprocessor_checks = OrderedDict((
41 + ('x32', '__x86_64__ && __ILP32__'),
42 ('x86', '__i386__ || _M_IX86'),
43 ('x86_64', '__x86_64__ || _M_X64'),
44 ('arm', '__arm__ || _M_ARM'),