Package: nodejs / 4.8.2~dfsg-1

2016_mips64el.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: add mips64el target host support to nodejs
Author: YunQiang Su <wzssyqa@gmail.com>
Last-Update: 2015-09-29
Forwarded: not yet
--- a/configure
+++ b/configure
@@ -46,7 +46,7 @@
 
 valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
             'android', 'aix')
-valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 'x32',
+valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc', 'ppc64', 'x32',
               'x64', 'x86', 's390', 's390x')
 valid_arm_float_abi = ('soft', 'softfp', 'hard')
 valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
@@ -673,6 +673,9 @@
     '__s390x__'   : 's390x',
   }
 
+  if k.get('_MIPS_SIM') == '_ABI64' and k.get('__MIPSEL__') == '1':
+    return 'mips64el'
+
   rtn = 'ia32' # default
 
   for i in matchup:
@@ -760,7 +763,7 @@
 
   if target_arch == 'arm':
     configure_arm(o)
-  elif target_arch in ('mips', 'mipsel'):
+  elif target_arch in ('mips', 'mipsel', 'mips64el'):
     configure_mips(o)
 
   if flavor == 'aix':