File support-arm64-build.patch of Package nodejs

Index: node-v4.2.1/Makefile
===================================================================
--- node-v4.2.1.orig/Makefile
+++ node-v4.2.1/Makefile
@@ -272,6 +272,9 @@ else
 ifeq ($(DESTCPU),arm)
 ARCH=arm
 else
+ifeq ($(DESTCPU),arm64)
+ARCH=arm64
+else
 ifeq ($(DESTCPU),ppc64)
 ARCH=ppc64
 else
@@ -282,6 +285,7 @@ ARCH=x86
 endif
 endif
 endif
+endif
 endif
 
 # enforce "x86" over "ia32" as the generally accepted way of referring to 32-bit intel
Index: node-v4.2.1/configure
===================================================================
--- node-v4.2.1.orig/configure
+++ node-v4.2.1/configure
@@ -580,6 +580,7 @@ def host_arch_cc():
     '__aarch64__' : 'arm64',
     '__arm__'     : 'arm',
     '__i386__'    : 'ia32',
+    '__aarch64__' : 'arm64',
     '__MIPSEL__'  : 'mipsel',
     '__mips__'    : 'mips',
     '__PPC64__'   : 'ppc64',
openSUSE Build Service is sponsored by